Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protocols/relay: Implement circuit relay v2 protocol #2059

Merged
merged 129 commits into from
Jan 14, 2022

Commits on Apr 26, 2021

  1. protocols/relay: Implement circuit relay v2 protocol

    This commit adds an implementation for the circuit relay v2 protocol to
    be used as a relay server, i.e. it supports incoming HOP requests and
    outgoing STOP requests. Future commits will add support for clients,
    i.e. outgoing HOP requests and incoming STOP requests.
    
    The existing circuit relay v1 protocol implementation is moved to
    protocols/relay/src/v1.
    mxinden committed Apr 26, 2021
    Configuration menu
    Copy the full SHA
    3bd6602 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    125e3c3 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2021

  1. Configuration menu
    Copy the full SHA
    4281bd5 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2021

  1. Configuration menu
    Copy the full SHA
    778512d View commit details
    Browse the repository at this point in the history

Commits on May 16, 2021

  1. Configuration menu
    Copy the full SHA
    dfe1285 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ca19fe4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    59c8741 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    54cc9db View commit details
    Browse the repository at this point in the history

Commits on May 17, 2021

  1. Configuration menu
    Copy the full SHA
    8e7b6a0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a1589cc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4af855e View commit details
    Browse the repository at this point in the history

Commits on May 18, 2021

  1. Configuration menu
    Copy the full SHA
    8934664 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    79fd6be View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0ed3153 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1318636 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    5df655e View commit details
    Browse the repository at this point in the history

Commits on May 19, 2021

  1. Configuration menu
    Copy the full SHA
    643ffb0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    570980d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    037a398 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2021

  1. Configuration menu
    Copy the full SHA
    806fd93 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5b170d7 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Configuration menu
    Copy the full SHA
    1723e92 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2021

  1. Configuration menu
    Copy the full SHA
    cfcb810 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ea53ad7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    599aa09 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0b8d54c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3082efb View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2021

  1. Configuration menu
    Copy the full SHA
    5f073c6 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2021

  1. Configuration menu
    Copy the full SHA
    fdacc1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    93f0979 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    334ffc6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8803bd0 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2021

  1. Configuration menu
    Copy the full SHA
    c51f9e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8777d70 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4e5f99d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d55a5b9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e5f63bc View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f8d0047 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    55dd0a2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    7e11439 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    126f971 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    75f5616 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6dc961a View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2021

  1. Configuration menu
    Copy the full SHA
    2ef7050 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2021

  1. Configuration menu
    Copy the full SHA
    b07257d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    31f8424 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2021

  1. Configuration menu
    Copy the full SHA
    8dc98bf View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2021

  1. Configuration menu
    Copy the full SHA
    cfa459d View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2021

  1. Configuration menu
    Copy the full SHA
    7e51e54 View commit details
    Browse the repository at this point in the history

Commits on Oct 7, 2021

  1. Configuration menu
    Copy the full SHA
    832f069 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2c79813 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2021

  1. Configuration menu
    Copy the full SHA
    fa82385 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2021

  1. Configuration menu
    Copy the full SHA
    d51fa72 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2021

  1. protocols/relay: Run rust fmt

    mxinden committed Nov 20, 2021
    Configuration menu
    Copy the full SHA
    c742335 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2021

  1. Configuration menu
    Copy the full SHA
    0780206 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2021

  1. Configuration menu
    Copy the full SHA
    69b2fc1 View commit details
    Browse the repository at this point in the history
  2. protocols/relay/examples: Structure command line args

    - Allow deterministic peer identity.
    - Choose between ipv6 and ipv4.
    r-zig authored and mxinden committed Nov 26, 2021
    Configuration menu
    Copy the full SHA
    580f668 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2021

  1. Configuration menu
    Copy the full SHA
    7c9f3bc View commit details
    Browse the repository at this point in the history
  2. Refactor suggestion

    MarcoPolo authored and mxinden committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    ad79422 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    517075d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    da7f5e4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    45163df View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1d20392 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    395f43a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2de96d6 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2021

  1. Configuration menu
    Copy the full SHA
    c0c0880 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    746c75e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    08d6637 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bfd92a1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a60ffba View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2021

  1. Configuration menu
    Copy the full SHA
    1123952 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1af928a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a9d9b41 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a8f21ae View commit details
    Browse the repository at this point in the history
  5. protocols/relay/src/v2/client/transport: Loop on from_behaviour

    Previous version was (a) confusing due to assuming `queued_new_addresses` to be
    empty and (b) error prone in the case where `addrs` is emtpy and thus no `Waker`
    being registered.
    mxinden committed Dec 12, 2021
    Configuration menu
    Copy the full SHA
    daa0686 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8856fde View commit details
    Browse the repository at this point in the history
  7. protocols/relay/: Allow large enum variant

    While a good lint in itself, I don't think we need to optimize these enums
    without previously benchmarking its impact.
    mxinden committed Dec 12, 2021
    Configuration menu
    Copy the full SHA
    a1fad8c View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2021

  1. protocols/relay/src/v2/client/transport: Remove destination address

    Don't include destination address when establishing relayed connection in doc
    example.
    mxinden committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    5d9f95a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eaab34e View commit details
    Browse the repository at this point in the history
  3. protocols/relay/src/v2/client: Pass event at handler initialization

    Instead of creating a new connection and only once established pass a command to
    said connection, provide the command early on to the handler, thus not requiring
    to buffer the command within the `NetworkBehaviour` implementation.
    mxinden committed Dec 13, 2021
    2 Configuration menu
    Copy the full SHA
    26aaa6e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    49a6327 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2e4e743 View commit details
    Browse the repository at this point in the history
  6. protocols/relay/src/v2/client: Introduce Reservation::None

    This allows us to put more logic on the actual `Reservation` type,
    making the implementation of the handler slightly simpler.
    thomaseizinger authored and mxinden committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    bce3ba0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    01e12f7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b1646f4 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2021

  1. Configuration menu
    Copy the full SHA
    912d314 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dbfe25b View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2021

  1. protocols/relay/src/v2/client/handler.rs: Fix typo

    Co-authored-by: Elena Frank <57632201+elenaf9@users.noreply.github.com>
    mxinden and elenaf9 committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    c09861b View commit details
    Browse the repository at this point in the history
  2. protocols/relay/src/v2/client/transport.rs: Make doc examples consistent

    Co-authored-by: Elena Frank <57632201+elenaf9@users.noreply.github.com>
    mxinden and elenaf9 committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    5afa13b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9a0f886 View commit details
    Browse the repository at this point in the history
  4. protocols/relay/src/v2/protocol/inbound_stop.rs: Remove src_peer_id p…

    …ub(crate)
    
    Co-authored-by: Elena Frank <57632201+elenaf9@users.noreply.github.com>
    mxinden and elenaf9 committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    a15bf3d View commit details
    Browse the repository at this point in the history
  5. protocols/relay/src/v2/relay/handler: Remove wrong unused variable as…

    …signment
    
    Co-authored-by: Elena Frank <57632201+elenaf9@users.noreply.github.com>
    mxinden and elenaf9 committed Dec 16, 2021
    Configuration menu
    Copy the full SHA
    7b2eeb5 View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2021

  1. Configuration menu
    Copy the full SHA
    8e6ce38 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    451d86c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a0750ef View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4b90626 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    45f7e21 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1b5cb8e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2f5b8e6 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2021

  1. Configuration menu
    Copy the full SHA
    a056b4b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7a4cf0a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ed79c72 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0b6aca3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0e17512 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    be9b94e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b9eb0f0 View commit details
    Browse the repository at this point in the history
  8. protocols/relay/src/v2/copy_future.rs: Add unit tests

    - Copying from a to b and vice versa.
    - Checking max bytes.
    - Checking max duration.
    mxinden committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    93691a8 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0cdb1b6 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2021

  1. Configuration menu
    Copy the full SHA
    b68f5a2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    040909e View commit details
    Browse the repository at this point in the history
  3. protocols/relay/src/v2: Make reservation expiration required

    See libp2p/specs#384 for corresponding
    specification change.
    mxinden committed Dec 19, 2021
    Configuration menu
    Copy the full SHA
    d5ee477 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2021

  1. Configuration menu
    Copy the full SHA
    3627610 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9a4ad18 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2aa6e94 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6916384 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8aa3867 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ca5aaed View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    48f7f68 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    58daa47 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    00c98d5 View commit details
    Browse the repository at this point in the history

Commits on Dec 27, 2021

  1. Configuration menu
    Copy the full SHA
    14e7912 View commit details
    Browse the repository at this point in the history

Commits on Dec 29, 2021

  1. Configuration menu
    Copy the full SHA
    3f8e772 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6dbf82 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2022

  1. Configuration menu
    Copy the full SHA
    80a9e76 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1cb684 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4212777 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    00dbcc8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    56ce0a3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ab619c9 View commit details
    Browse the repository at this point in the history