Bug 2281 - Ping does not work for odd sized '-s' on little-endian targets
Ping does not work for odd sized '-s' on little-endian targets
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: netkit-base (Show other bugs)
6.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Turner
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-04-19 23:09 EDT by tlarsen
Modified: 2015-01-07 18:37 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-05-05 13:27:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description tlarsen 1999-04-19 23:09:42 EDT
In the in_cksum routine in ping.c, the 'if' case to handle pings of odd
length incorrectly handles the final byte. The code in ping.c will work
for big-endian targets, but fails for little-endian builds.

For example:   ping -s 513 localhost

has 100% data loss, where ping -s 512 localhost does not, on x86.
Comment 1 Jeff Johnson 1999-05-05 13:27:59 EDT
Fixed (by porting Alexey Kuznetsov's version from iputils) in
netkit-base-0.10-30.

Note You need to log in before you can comment on or make changes to this bug.