This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Bug in ping? ICMP Sequence Number octets are reversed
- From: Spiro Trikaliotis <an-cygwin at spiro dot trikaliotis dot net>
- To: cygwin at cygwin dot com
- Date: Fri, 13 Jun 2008 09:24:27 +0200
- Subject: Re: Bug in ping? ICMP Sequence Number octets are reversed
- Bcc: Spiro Trikaliotis <trikalio at localhost>
- References: <20080613053909.GE9710@suncomp1.spk.agilent.com>
Hello,
I just had a (short) session with Wireshark:
* On Thu, Jun 12, 2008 at 10:39:09PM -0700 Gary Johnson wrote:
> I've been using Cygwin's ping (/usr/bin/ping, ping-1.0-1) to do some
> testing of IP over a wireless modem.
[...]
> It looks like someone just wrote a short integer to the sequence
> number field without calling htons() to perform the possible
> little-endian to big-endian conversion.
I can confirm this for both cygwin ping and for Windows (XP SP2) ping.
> I
> would compare it to ping on other systems, but I don't have a
> convenient way to sniff those packets.
Well, Debian/Linux (Etch, v4.0) does it in network byte order, as one
(might) expect. Differently to the Windows and Cygwin ping, it starts
the sequence number with 1, not with 0.
Should it be changed? I don't know, I never had a problem with it, but
others might.
Regards,
Spiro.
--
Spiro R. Trikaliotis http://opencbm.sf.net/
http://www.trikaliotis.net/ http://www.viceteam.org/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/