Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 171678

Summary: linux/ip.h has incorrect endian #ifdefs in struct iphdr.
Product: Red Hat Enterprise Linux 4 Reporter: David Woodhouse <dwmw2>
Component: glibc-kernheadersAssignee: David Woodhouse <dwmw2>
Status: CLOSED ERRATA QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: jarod, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0318 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-05-01 23:07:33 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:
Bug Depends On:    
Bug Blocks: 171679    

Description David Woodhouse 2005-10-25 07:42:02 UTC
struct iphdr {
#if defined(__LITTLE_ENDIAN)
        uint8_t ihl:4,
                version:4;
#elif defined (__BIG_ENDIAN)
        uint8_t version:4,
                ihl:4;
#endif

Both __LITTLE_ENDIAN and __BIG_ENDIAN are defined. It should be 
#if __BYTE_ORDER == __LITTLE_ENDIAN
etc. 


Additional info:

Comment 1 David Woodhouse 2005-10-25 08:15:12 UTC
Bug exists in FC4 and rawhide too. glibc-kernheaders-3.0-2 built in rawhide,
glibc-kernheaders-2.4-9.1.99 is built in dist-fc4-updates-candidate.
Awaiting process for RHEL4.

Comment 2 RHEL Program Management 2006-09-12 14:01:42 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 3 David Woodhouse 2006-09-12 15:37:22 UTC
Fixed in glibc-kernheaders-2_4-9_1_99_EL

Comment 11 Red Hat Bugzilla 2007-05-01 23:07:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0318.html