Skip to contentSkip to conversation

Fix net-2.6.22 on sparc

PATCH David Miller 2 participants 3 messages Mar 10, 2007

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

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 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
index d77768e..7c14239 100644
@@ -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
index 1bd9f52..986441d 100644
@@ -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 */
#1 lore raw
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 9415518744729743b017da2e08a71c5bb0d94108

Author: David S. Miller <[email protected]>
Date:   Fri Mar 9 16:22:52 2007 -0800
Quoted 6 lines

[NET]: Fix SO_TIMESTAMPNS values allocated to sparc.

They confliced with SO_BROADCAST which already uses the value 0x0020.

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 ?

author maintainer
#2 lore raw

From: 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_XXXX values 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. :)