I need to build a test environment with a very precise packet loss based on specific TCP sequence or, optionally, on payload content. I couldn't figure out how to do it with tc or iptables. What tool should I use?
Thanks.
I need to build a test environment with a very precise packet loss based on specific TCP sequence or, optionally, on payload content. I couldn't figure out how to do it with tc or iptables. What tool should I use?
Thanks.
http://www.netfilter.org/documentation/HOWTO/netfilter-extensions-HOWTO-3.html
Moving on to the TCP header
Let's say I'd like to look at bytes 4-7 of the TCP header (the TCP sequence number)...
The final expression (check for TCP, check for unfragmented packet or first fragment, and jump over the IP header, checking that bytes 4-7 of the TCP header are equal to 41) is: