I am using Ubuntu 16.10 to run an experiment.
I use Python scapy to send two packets to a machine connected over a switch. The first packet is a normal TCP SYN packet and is received by the nc app on the second machine and I can see the corresponding SYN/ACK packet.
However, the second packet I send contains an IP option Loose Source Routing . This second packet is received on the other machine (I can see it in wireshark) but not handed to the application, therefore no SYN/ACK is sent. I am wondering why that is the case.
Here's the scapy code I am using:
Packet 1:
pkt1=IP(src="10.0.0.2", dst="10.0.0.3")/TCP(sport=random.randint(54100,54300),dport=23800)
send(pkt1)
Packet 2:
pkt2=IP(src="10.0.0.2", dst="10.0.0.3",options=IPOption('\x83\x03\x10'))/TCP(sport=random.randint(54100,54300),dport=23800)
send(pkt2)
Asked by Human
(125 rep)
Mar 14, 2017, 10:48 PM
Last activity: Mar 14, 2017, 11:26 PM
Last activity: Mar 14, 2017, 11:26 PM