Sorry,
  ping is not in net-tools, but in netkit... I have debian
gcc version egcs-2.91.63 19990224 (egcs-1.1.2 pre-release-3) handy
and ping compiled `gcc -o ping ping.c' works, but product of
`gcc -o ping -O ping.c' does not work :-(
                                                Petr

------- Forwarded Message Follows -------

From:           Self <VCNET/VANDROVE>
To:             "Richard B. Johnson" <[EMAIL PROTECTED]>
Subject:        Re: 2.2.x kernels missend odd-sized ICMP packets
Copies to:      [EMAIL PROTECTED]
Date sent:      Fri, 9 Apr 1999 15:10:59 MET-1

On  9 Apr 99 at 8:38, Richard B. Johnson wrote:
> > Later,
> > David S. Miller
> > [EMAIL PROTECTED]
> At the user-level, sizes can be odd. Packets are padded later so
> what gets checksummed and sent on the physical link is always even.
Hi,
  problem is in ping. Ping from (debian) netbase-3.11-1.2 (net-tools 1.45)
works, but from netbase-3.14-1 (net-tools 1.51) does not. But problem
is not in ping program version, but in compiler. I have ping from
net-tools 1.45 compiled on one machine using gcc-2.8.1 and it does not
work. Same code compiled 2.7.2.3 does :-( And packet is odd-sized
on media (ping -s 91 produced 137 bytes long ethernet frame
with checksum 0x15A4 instead of 0x15FD; btw, last character from frame
is 0x5A;; packets from gcc-2.7.2.3 ping are also 137 bytes long,
but correctly checksummed *). So kernel has nothing to do with it...
                                        Best regards,
                                            Petr Vandrovec
                                            [EMAIL PROTECTED]

*) according to LanAlyzer from Novell

P.S.: Grr :-( I have to reinstall gcc-2.7.2.3 on my machine (or check
egcs-1.1.2).
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to