Hi,


>  const struct tcphdr * tcp_hdr = (const struct tcphdr *)(sp + ETHER_HDRLEN
>> + IP_HL(ip));
>>
>> This is surely wrong.
>> The size of the IP header is IP_HL(ip)*4  not IP_HL(ip)
>>
>>
> Thank you very much! Now I do get the same seq  and ack number for my app
> and tcpdump -vv.
>
>
Though, unfortunately I turn out to need the relative sequence and ack
number. How do I get those?

Thank you,
Andrej
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Reply via email to