Bug 11142 - Wrong <netinet/if_ether.h> installed on hurd
Wrong <netinet/if_ether.h> installed on hurd
Status: NEW
Product: glibc
Classification: Unclassified
Component: hurd
unspecified
: P2 normal
: ---
Assigned To: Roland McGrath
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-01-06 09:46 UTC by Aurelien Jarno
Modified: 2010-01-10 23:14 UTC (History)
2 users (show)

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


Attachments
Patch to fix the problem (7.86 KB, patch)
2010-01-06 09:46 UTC, Aurelien Jarno
Details | Diff
Factorize ethernet,if_arp,if_ether,if_ppp,route.h (29.69 KB, patch)
2010-01-10 23:14 UTC, 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 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 
sysdeps/mach/hurd/netinet/if_ether.h.
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
right.