Hi,
I'm encountering some interesting behavior regarding the TCP seq and ack numbers.
I am trying to manually set initial sequence numbers --
I would like to set the sequence number for SYN and SYNACK packets manually using the setter TCP::seq(uint32_t) and TCP::ack_seq(uint32_t) functions.
However, after checking the packets sent through wireshark, the SYN packets always revert back to seq=0, and SYNACK packets to seq = 0, ack = 1, no matter
what values I place into the setter functions.
Is there something I'm not including? Or is this expected behavior from the library? Or is this perhaps interference from the kernel?
Any advice or help would be greatly appreciated.
Thanks!