Bug 11142

Summary: Wrong <netinet/if_ether.h> installed on hurd
Product: glibc Reporter: Aurelien Jarno <aurelien>
Component: hurdAssignee: Roland McGrath <roland>
Status: NEW ---    
Severity: normal CC: glibc-bugs, samuel.thibault
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: i686-unknown-gnu0.3 Target: i686-unknown-gnu0.3
Build: i686-unknown-gnu0.3 Last reconfirmed:
Attachments: Patch to fix the problem
Factorize ethernet,if_arp,if_ether,if_ppp,route.h

Description Aurelien Jarno 2010-01-06 09:46:05 UTC
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 
Comment 1 Aurelien Jarno 2010-01-06 09:46:37 UTC
Created attachment 4499 [details]
Patch to fix the problem
Comment 2 Samuel Thibault 2010-01-06 17:57:28 UTC
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 UTC
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