Skip to content

Conversation

@JordiSubira
Copy link
Contributor

This PR resolves #4698.

I followed the same principle that we use for the other protocols, i.e., we dispatch to the mapped port if the destination port is within the dispatched port range. Otherwise, it is sent to the fix EndhostPort.

This makes it compatible with implementations following the "Wireguard"-model, i.e., sending the encapsulated traffic over a fix UDP port, e.g., the SCION-IP translator; or alternative implementations that map the underlay port to the application port, e.g., what we do with SCMP or UDP/SCION, provided proper dispatched_ports configuration.

@jiceathome
Copy link
Contributor

This change is Reviewable

@JordiSubira JordiSubira changed the title add tcp support for dispatching to endhost router: add tcp support for dispatching to endhost Feb 14, 2025
Copy link
Contributor

@jiceathome jiceathome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @JordiSubira)

@JordiSubira JordiSubira merged commit c30fb32 into scionproto:master Feb 17, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

router: support for handling TCP/SCION packets at the last-mile AS

2 participants