Sample Header Ad - 728x90

Setting 'DF'-bit in IP-header inside pcap file

1 vote
1 answer
517 views
There is some *.pcap*-file with fragmented IP traffic. I replay this file with tcpreplay, but also I need to replay it with [*DF*](https://www.eit.lth.se/ppplab/IPHeader.htm#Flags) *(don't fragment)* bit set in some packets. I supposed that tcprewrite will help, but it seems that there is no ability to change IP-header flags in this utility. So which utility (console preferably) should I use to correctly alter IP-header flags in pcap-file in Linux? If tcprewrite or any other can do so, some examples would be helpful. By the way, after altering *DF*-bit the [checksum](https://www.eit.lth.se/ppplab/IPHeader.htm#Header%20checksum) of IP-header should be updated respectively.
Asked by red0ct (667 rep)
Oct 17, 2018, 03:32 PM
Last activity: Jan 30, 2020, 08:04 AM