I've been messing around with scapy in Python, but more specifically, I've been creating packets and trying to set the options in the TCP layer.
I know I can create a packet with
>>> a = IP()/TCP()
I also know I can set the options in the TCP layer by
>>> a[TCP].options=[('MSS',1200),('NOP',None)]
Or
>>> a[TCP].options=('MSS',1200),('NOP',None)
The problem I am having is after I sent the packet and observe it in wireshark. Wireshark always shows that the End of List (EOL) option is set in my packets when I don't set it. I don't think that option is always set no matter what because I've seen plenty of TCP packets without that option displayed. Is there a way to set the TCP options in scapy WITHOUT including the EOL option?
Thanks.