I am trying to do the following:
(1) Receive a network packet, (2) Change the tcp mss (max. segment size) to a different value, (3) Send the packet out.
I am using python, iptables and dpkt to do this, but I am not able to change the MSS in the tcp header (in dpkt, how do I change mss in pkt.tcp.opts)?
Can someone please help me with changing the MSS in the TCP header?
Thanks!