-
Notifications
You must be signed in to change notification settings - Fork 9
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
Handle TTL field from IP header. #15
Comments
It seems this is possible to send ICMP packet from XDP, katran seems to do that. |
some example about decrease TTL : https://github.com/torvalds/linux/blob/master/samples/bpf/xdp_fwd_kern.c |
sbernard31
added a commit
that referenced
this issue
Jul 27, 2020
Merged
sbernard31
added a commit
that referenced
this issue
Jul 28, 2020
Partially done by #33 but we don't send ICMP packet for now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The IP header contains a TTL field (see RFC 791):
The wikipedia explanation is maybe better :
We can consider sbulb as a router, so If we want to be a good internet citizen we should update TTL field and discard packet if needed. This part should be easy to implement.
About sending an ICMP packet, I don't know if this is easy maybe we can just let the Linux kernel do that ? (return XDP_PASS)
The text was updated successfully, but these errors were encountered: