Bug 11142 - Wrong <netinet/if_ether.h> installed on hurd
Summary: Wrong <netinet/if_ether.h> installed on hurd
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: hurd (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Roland McGrath
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-06 09:46 IST by Aurelien Jarno
Modified: 2014-06-30 20:25 IST (History)
2 users (show)

See Also:
Host: i686-unknown-gnu0.3
Target: i686-unknown-gnu0.3
Build: i686-unknown-gnu0.3
Last reconfirmed:
fweimer: security-


Attachments
Patch to fix the problem (1.98 KB, patch)
2010-01-06 09:46 IST, Aurelien Jarno
Details | Diff
Factorize ethernet,if_arp,if_ether,if_ppp,route.h (9.03 KB, patch)
2010-01-10 23:14 IST, Samuel Thibault
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aurelien Jarno 2010-01-06 09:46:05 IST
On hurd, the generic <netinet/if_ether.h> is installed instead of the hurd 
specific one. This is due to this file being located in 
sysdeps/mach/hurd/net/if_ether.h instead of 
sysdeps/mach/hurd/netinet/if_ether.h.
Comment 1 Aurelien Jarno 2010-01-06 09:46:37 IST
Created attachment 4499 [details]
Patch to fix the problem
Comment 2 Samuel Thibault 2010-01-06 17:57:28 IST
It's a long story :)  Notice this: http://sourceware.org/ml/libc-alpha/2009-01/msg00018.html  and this: http://sourceware.org/ml/libc-alpha/2009-01/  Which never got any action.  sysdeps/gnu/netinet/if_ether.h would probably need a couple of fixes to better match Linux' behavior: - include net/ethernet.h and net/if_arp.h only #ifdef __USE_BSD - include net/if_ether. 
Comment 3 Samuel Thibault 2010-01-10 23:14:36 IST
Created attachment 4506 [details]
Factorize ethernet,if_arp,if_ether,if_ppp,route.h

Here is an updated patch, to be applied by git apply to get renamings
right.