ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-bugs: [Wireshark-bugs] [Bug 4014] ICMP: Add ID and seq # to Info column

Date: Thu, 16 Sep 2010 07:05:17 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4014

--- Comment #21 from Chris Maynard <christopher.maynard@xxxxxxxxx> 2010-09-16 07:05:12 PDT ---
(In reply to comment #16)
>   id=0x412b, seq=1/256, ttl=64

Looks good to me too.

> As for the identifier field, FreeBSD at least on 8.1-RELEASE sends the
> identifier out as little-endian on a little endian host while Wireshark
> displays it in big endian format.  I never realized that the ident field was
> based on the process id, but sure enough on FreeBSD, /usr/src/sbin/ping/ping.c
> does this:
> 
>   ident = getpid() & 0xFFFF;

Which is a bug of course.  Starting with iputils-s20100214, this has been
corrected to:
    ident = htons(getpid() & 0xFFFF); 

Not sure if FreeBSD has picked this up yet?

> What a pain.

Indeed.

(In reply to comment #20)
> I also changed both representations of the identifier field from BASE_HEX to
> BASE_DEC_HEX for easy reference to Unix process ids.

Nice.  It should be obvious through process of elimination that both
"Identifier" and "Sequence number" are the Big Endian representations ... but
should they be changed to "Identifier (BE)" and "Sequence number (BE)" to
explicitly indicate the endian-ness and match their (LE) counterparts?

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.