tcpdump mailing list archives

Re: tcp sequence and ack number with libpcap


From: Andrej van der Zee <andrejvanderzee () gmail com>
Date: Fri, 20 Aug 2010 08:15:19 +0900

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.


Current thread: