Bug 171678 - linux/ip.h has incorrect endian #ifdefs in struct iphdr.
Summary: linux/ip.h has incorrect endian #ifdefs in struct iphdr.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: glibc-kernheaders
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: David Woodhouse
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks: 171679
TreeView+ depends on / blocked
 
Reported: 2005-10-25 07:42 UTC by David Woodhouse
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version: RHBA-2007-0318
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-05-01 23:07:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2007:0318 0 normal SHIPPED_LIVE glibc-kernheaders bug fix update 2007-04-30 14:44:01 UTC

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



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