I have following information for each packet I want to generate via Scapy, it is tcpdump output:
1509472682.813373 MAC1 > MAC2, ethertype IPv4 (0x0800), length
Finally I have find what I have set wrong:
As I mentioned in my first edit, to set Selective Acknowledgment Permitted, I should pass option a tuple as ('SAckOK', '')
.
To set timestamp
I should pass option a tuple as ('Timestamp', (1098453, 0))
in the inner tuple the first argument is Val
and the second one is Ecr
.