1
2 #ifndef _XT_SOCKET_H
3 #define _XT_SOCKET_H
4
5 #include <linux/types.h>
6
7 enum {
8 XT_SOCKET_TRANSPARENT = 1 << 0,
9 XT_SOCKET_NOWILDCARD = 1 << 1,
10 XT_SOCKET_RESTORESKMARK = 1 << 2,
11 };
12
13 struct xt_socket_mtinfo1 {
14 __u8 flags;
15 };
16 #define XT_SOCKET_FLAGS_V1 XT_SOCKET_TRANSPARENT
17
18 struct xt_socket_mtinfo2 {
19 __u8 flags;
20 };
21 #define XT_SOCKET_FLAGS_V2 (XT_SOCKET_TRANSPARENT | XT_SOCKET_NOWILDCARD)
22
23 struct xt_socket_mtinfo3 {
24 __u8 flags;
25 };
26 #define XT_SOCKET_FLAGS_V3 (XT_SOCKET_TRANSPARENT \
27 | XT_SOCKET_NOWILDCARD \
28 | XT_SOCKET_RESTORESKMARK)
29
30 #endif