Fix net-2.6.22 on sparc
Subsystems (2)
David Miller
maintainerEric, please look at whole files you are editing :) I'm sure there is probably another case like this or two in the other platform socket ioctl allocations you made.
Thanks.
commit 9415518744729743b017da2e08a71c5bb0d94108
Author: David S. Miller <[email protected]> Date: Fri Mar 9 16:22:52 2007 -0800
[NET]: Fix SO_TIMESTAMPNS values allocated to sparc.
They confliced with SO_BROADCAST which already uses the value 0x0020.
include/asm-sparc/socket.h +1 -1
@@ -49,7 +49,7 @@#define SO_PEERSEC 0x001e#define SO_PASSSEC 0x001f -#define SO_TIMESTAMPNS 0x0020 +#define SO_TIMESTAMPNS 0x0021#define SCM_TIMESTAMPNS SO_TIMESTAMPNS/* Security levels - as per NRL IPv6 - don't actually do anything */
include/asm-sparc64/socket.h +1 -1
@@ -49,7 +49,7 @@#define SO_PEERSEC 0x001e#define SO_PASSSEC 0x001f -#define SO_TIMESTAMPNS 0x0020 +#define SO_TIMESTAMPNS 0x0021#define SCM_TIMESTAMPNS SO_TIMESTAMPNS/* Security levels - as per NRL IPv6 - don't actually do anything */
Quoted 10 lines · David Miller
Eric, please look at whole files you are editing :) I'm sure there is probably another case like this or two in the other platform socket ioctl allocations you made.
Thanks.
commit
9415518744729743b017da2e08a71c5bb0d94108Author: David S. Miller <[email protected]> Date: Fri Mar 9 16:22:52 2007 -0800
Quoted 6 lines
[NET]: Fix
SO_TIMESTAMPNSvalues allocated to sparc.They confliced with
SO_BROADCASTwhich already uses the value0x0020.Signed-off-by David S. Miller <[email protected]>
Oh I see :( this one was really not easy to spot without close inspection :)
I just checked all arches and only sparc{64} have this strange SO_XXXX values not linear. I wonder why this layout was chosen ?
David Miller
maintainerFrom: Eric Dumazet <[email protected]>
Date: Sat, 10 Mar 2007 01:56:16 +0100
Quoted 2 lines
I just checked all arches and only sparc{64} have this strange
SO_XXXXvalues not linear. I wonder why this layout was chosen ?
A lot of the API bogosity in the sparc userspace APIs comes from the fact that we mirrored the SunOS values at the beginning of the port and we're kind of stuck with that bad decision. :)