How to set TCP options (Timestamp and SAckOk) via Scapy?

前端 未结 1 1392
暗喜
暗喜 2021-01-28 07:56

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

相关标签:
1条回答
  • 2021-01-28 08:41

    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.

    0 讨论(0)
提交回复
热议问题