X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 13 Jun 2008 09:24:27 +0200 From: Spiro Trikaliotis To: cygwin AT cygwin DOT com Message-ID: <20080613072427.GA12653@trikaliotis.net> Mail-Followup-To: cygwin AT cygwin DOT com References: <20080613053909 DOT GE9710 AT suncomp1 DOT spk DOT agilent DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080613053909.GE9710@suncomp1.spk.agilent.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-SA-Exim-Connect-IP: 195.4.206.207 X-SA-Exim-Mail-From: an-cygwin AT spiro DOT trikaliotis DOT net Subject: Re: Bug in ping? ICMP Sequence Number octets are reversed X-SA-Exim-Version: 4.2.1 (built Tue, 09 Jan 2007 17:23:22 +0000) X-SA-Exim-Scanned: Yes (on mail.trikaliotis.net) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/