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

Add the ability to set the DF flag and get MTU size feedback from the ICMP protocol. #71

Open
TonyFlury opened this issue Aug 26, 2023 · 0 comments

Comments

@TonyFlury
Copy link

The ICMP protocol contains flags to prevent Fragmentation, and when the DF flag is set (and a router then rejects the packet due to its size (ie no onward route that will accept that size MTU), the router is supposed to send a Route Unavaialbe message back, which states the maximum MTU that the route can take.

Therefore by using the DF flag and the return value from the ICMP reply, it should be possible to do PMTU discovery for a remote destination.

Currently the only way to set the flags is to use sockets and setsocket_opts, which is a shame when icmplib does so much else already.

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

No branches or pull requests

1 participant