A userspace program may wish to set the mark for each packets its send
without using the netfilter MARK target. Changing the mark can be used
mark based routing without netfilter or for packet filtering.It requires CAP_NET_ADMIN capability.
Signed-off-by: Laszlo Attila Toth <panther@balabit.hu>
---
include/asm-alpha/socket.h | 2 ++
include/asm-arm/socket.h | 2 ++
include/asm-avr32/socket.h | 2 ++
include/asm-blackfin/socket.h | 3 +++
include/asm-cris/socket.h | 2 ++
include/asm-frv/socket.h | 2 ++
include/asm-h8300/socket.h | 2 ++
include/asm-ia64/socket.h | 2 ++
include/asm-m32r/socket.h | 2 ++
include/asm-m68k/socket.h | 2 ++
include/asm-mips/socket.h | 2 ++
include/asm-parisc/socket.h | 2 ++
include/asm-powerpc/socket.h | 2 ++
include/asm-s390/socket.h | 2 ++
include/asm-sh/socket.h | 2 ++
include/asm-sparc/socket.h | 2 ++
include/asm-sparc64/socket.h | 1 +
include/asm-v850/socket.h | 2 ++
include/asm-x86/socket.h | 2 ++
include/asm-xtensa/socket.h | 2 ++
include/net/route.h | 2 ++
include/net/sock.h | 2 ++
net/core/sock.c | 11 +++++++++++
net/ipv4/icmp.c | 1 +
net/ipv4/ip_output.c | 3 +++
net/ipv4/raw.c | 2 ++
26 files changed, 61 insertions(+), 0 deletions(-)diff --git a/include/asm-alpha/socket.h b/include/asm-alpha/socket.h
index 1fede7f..08c9793 100644
--- a/include/asm-alpha/socket.h
+++ b/include/asm-alpha/socket.h
@@ -60,4 +60,6 @@
#define SO_SECURITY_ENCRYPTION_TRANSPORT 20
#define SO_SECURITY_ENCRYPTION_NETWORK 21+#define SO_MARK 36
+
#endif /* _ASM_SOCKET_H */
diff --git a/include/asm-arm/socket.h b/include/asm-arm/socket.h
index 65a1a64..6817be9 100644
--- a/include/asm-arm/socket.h
+++ b/include/asm-arm/socket.h
@@ -52,4 +52,6 @@
#define SO_TIMESTAMPNS 35
#define SCM_TIMESTAMPNS SO_...
> ...
What about IPv6?
--
A userspace program may wish to set the mark for each packets its send
without using the netfilter MARK target. Changing the mark can be used
for mark based routing without netfilter or for packet filtering.It requires CAP_NET_ADMIN capability.
Signed-off-by: Laszlo Attila Toth <panther@balabit.hu>
---
include/asm-alpha/socket.h | 2 ++
include/asm-arm/socket.h | 2 ++
include/asm-avr32/socket.h | 2 ++
include/asm-blackfin/socket.h | 3 +++
include/asm-cris/socket.h | 2 ++
include/asm-frv/socket.h | 2 ++
include/asm-h8300/socket.h | 2 ++
include/asm-ia64/socket.h | 2 ++
include/asm-m32r/socket.h | 2 ++
include/asm-m68k/socket.h | 2 ++
include/asm-mips/socket.h | 2 ++
include/asm-parisc/socket.h | 2 ++
include/asm-powerpc/socket.h | 2 ++
include/asm-s390/socket.h | 2 ++
include/asm-sh/socket.h | 2 ++
include/asm-sparc/socket.h | 2 ++
include/asm-sparc64/socket.h | 1 +
include/asm-v850/socket.h | 2 ++
include/asm-x86/socket.h | 2 ++
include/asm-xtensa/socket.h | 2 ++
include/net/route.h | 2 ++
include/net/sock.h | 2 ++
net/core/sock.c | 11 +++++++++++
net/ipv4/ip_output.c | 3 +++
net/ipv4/raw.c | 2 ++
net/ipv6/ip6_output.c | 2 ++
net/ipv6/raw.c | 3 +++
27 files changed, 65 insertions(+), 0 deletions(-)diff --git a/include/asm-alpha/socket.h b/include/asm-alpha/socket.h
index 1fede7f..08c9793 100644
--- a/include/asm-alpha/socket.h
+++ b/include/asm-alpha/socket.h
@@ -60,4 +60,6 @@
#define SO_SECURITY_ENCRYPTION_TRANSPORT 20
#define SO_SECURITY_ENCRYPTION_NETWORK 21+#define SO_MARK 36
+
#endif /* _ASM_SOCKET_H */
diff --git a/include/asm-arm/socket.h b/include/asm-arm/socket.h
index 65a1a64..6817be9 100644
--- a/include/asm-arm/socket.h
+++ b/include/asm-arm/socket.h
@@ -52,4 +52,6 @@
#define S...
Looks good to me.
--
From: Patrick McHardy <kaber@trash.net>
Applied, thanks.
--
