Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
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
Product: Red Hat Linux
Classification: Retired
Component: netkit-base (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Turner
Depends On:
  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:
Last Closed: 1999-05-05 13:27:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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

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