-
Notifications
You must be signed in to change notification settings - Fork 160
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
Support use of net.PacketConn
in dtls.Listener
#570
Merged
Merged
Commits on Aug 27, 2023
-
Introduces a new net package, which defines networking interfaces used throughout the pion/dtls code base, as well as utilities to help consumers convert standard library net types into pion/dtls compatible ones. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f9fa3e0 - Browse repository at this point
Copy the full SHA f9fa3e0View commit details -
Updates unit and e2e tests to consume new utilities from the dtls net package. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 76b3b1d - Browse repository at this point
Copy the full SHA 76b3b1dView commit details -
Introduce a network PacketBuffer which maintains a ring buffer of network packets constituted of the packet payload and the remote address from which it was received. This package borrows heavily from the bytes based ring buffer in pion/transport/packetio. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 423f73a - Browse repository at this point
Copy the full SHA 423f73aView commit details -
Adds PacketBuffer unit tests. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for be76019 - Browse repository at this point
Copy the full SHA be76019View commit details -
Introduce UDP net.PacketListener
Introduces a UDP based net.PacketListener that allows for routing UDP datagrams based on remote address _or_ an alternate identifier. It is configured by the DatagramRouter and ConnectionIdentifier functions, which are provided by the caller. The former introspects outgoing datagrams for potential connection identifiers, while the latter routes incoming datagrams by introspecting their contents. This package borrows heavily from pion/transport/udp. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b1c5035 - Browse repository at this point
Copy the full SHA b1c5035View commit details -
Add UDP net.PacketListener unit tests
Adds unit tests for UDP net.PacketListener. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c884d97 - Browse repository at this point
Copy the full SHA c884d97View commit details -
Add CID based datagram routing
Adds functions to route datagrams and identify connections by DTLS 1.2 Connection IDs. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2a05cdc - Browse repository at this point
Copy the full SHA 2a05cdcView commit details -
Adds unit tests for CID routing functions. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 836b328 - Browse repository at this point
Copy the full SHA 836b328View commit details -
Set UDP routing if CID is enabled
Sets UDP routing functions in the default DTLS listener if a connection ID generator is provided. Also updates to accept a dtls net.PacketListener when a caller wishes to provide their own. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6ceaaa7 - Browse repository at this point
Copy the full SHA 6ceaaa7View commit details -
Adds an example for setting up a CID-enabled DTLS listener. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b6e9cfb - Browse repository at this point
Copy the full SHA b6e9cfbView commit details -
Add CID send only client example
Adds an example for a client that only sends connection IDs (i.e. does not request to received them). This is the most common scenario for DTLS clients. Signed-off-by: Daniel Mangum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 29202df - Browse repository at this point
Copy the full SHA 29202dfView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.