Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a19ec58 authored by Laszlo Attila Toth's avatar Laszlo Attila Toth Committed by David S. Miller
Browse files

[NET]: Introducing socket mark socket option.



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: default avatarLaszlo Attila Toth <panther@balabit.hu>
Acked-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 036c2e27
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -60,4 +60,6 @@
#define SO_SECURITY_ENCRYPTION_TRANSPORT	20
#define SO_SECURITY_ENCRYPTION_TRANSPORT	20
#define SO_SECURITY_ENCRYPTION_NETWORK		21
#define SO_SECURITY_ENCRYPTION_NETWORK		21


#define SO_MARK			36

#endif /* _ASM_SOCKET_H */
#endif /* _ASM_SOCKET_H */
+2 −0
Original line number Original line Diff line number Diff line
@@ -52,4 +52,6 @@
#define SO_TIMESTAMPNS		35
#define SO_TIMESTAMPNS		35
#define SCM_TIMESTAMPNS		SO_TIMESTAMPNS
#define SCM_TIMESTAMPNS		SO_TIMESTAMPNS


#define SO_MARK			36

#endif /* _ASM_SOCKET_H */
#endif /* _ASM_SOCKET_H */
+2 −0
Original line number Original line Diff line number Diff line
@@ -52,4 +52,6 @@
#define SO_TIMESTAMPNS		35
#define SO_TIMESTAMPNS		35
#define SCM_TIMESTAMPNS		SO_TIMESTAMPNS
#define SCM_TIMESTAMPNS		SO_TIMESTAMPNS


#define SO_MARK			36

#endif /* __ASM_AVR32_SOCKET_H */
#endif /* __ASM_AVR32_SOCKET_H */
+3 −0
Original line number Original line Diff line number Diff line
@@ -50,4 +50,7 @@
#define SO_PASSSEC		34
#define SO_PASSSEC		34
#define SO_TIMESTAMPNS		35
#define SO_TIMESTAMPNS		35
#define SCM_TIMESTAMPNS		SO_TIMESTAMPNS
#define SCM_TIMESTAMPNS		SO_TIMESTAMPNS

#define SO_MARK			36

#endif				/* _ASM_SOCKET_H */
#endif				/* _ASM_SOCKET_H */
+2 −0
Original line number Original line Diff line number Diff line
@@ -54,6 +54,8 @@
#define SO_TIMESTAMPNS		35
#define SO_TIMESTAMPNS		35
#define SCM_TIMESTAMPNS		SO_TIMESTAMPNS
#define SCM_TIMESTAMPNS		SO_TIMESTAMPNS


#define SO_MARK			36

#endif /* _ASM_SOCKET_H */
#endif /* _ASM_SOCKET_H */


Loading