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 06:17:46 +0900

Hi,


I think you are performing your byte ordering conversion wrong. Seq and
Ack values are transmitted in network byte order so you need to perform
a "network to host long" conversion, and for that, you need to user
ntohl(), not htonl().

On standard platforms with byte order 1234 or 4321, there is no difference.


Yes I noticed that but it does not make a difference indeed.

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


Current thread: