netfilter: xt_socket: added new revision of the 'socket' match supporting flags
If the XT_SOCKET_TRANSPARENT flag is set, enabled 'transparent' socket option is required for the socket to be matched. Signed-off-by: Laszlo Attila Toth <panther@balabit.hu> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
11eeef41d5
commit
a31e1ffd22
2 changed files with 64 additions and 11 deletions
12
include/linux/netfilter/xt_socket.h
Normal file
12
include/linux/netfilter/xt_socket.h
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#ifndef _XT_SOCKET_H
|
||||
#define _XT_SOCKET_H
|
||||
|
||||
enum {
|
||||
XT_SOCKET_TRANSPARENT = 1 << 0,
|
||||
};
|
||||
|
||||
struct xt_socket_mtinfo1 {
|
||||
__u8 flags;
|
||||
};
|
||||
|
||||
#endif /* _XT_SOCKET_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue