-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: respond with ICMP to too large packets
As stream-based protocol, TCP tries to stuff as many bytes into a packet as possible. If we just drop these packets if they are too large, a TCP connection will never be established. Therefore, we need to properly respond with a ICMP message. For this, we just reuse the xdp_ctx of the packet that was received, fill it with the response and send it back. Signed-off-by: Florian Kauer <florian.kauer@linutronix.de>
- Loading branch information
Showing
1 changed file
with
137 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters