Bug 2281

Summary: Ping does not work for odd sized '-s' on little-endian targets
Product: [Retired] Red Hat Linux Reporter: tlarsen
Component: netkit-baseAssignee: Jay Turner <jturner>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-05 17:27:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description tlarsen 1999-04-20 03:09:42 UTC
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 17:27:59 UTC
Fixed (by porting Alexey Kuznetsov's version from iputils) in
netkit-base-0.10-30.