diff options
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | 2013-08-13 09:05:38 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-14 04:47:15 -0400 |
commit | f0c03956ac40fdc4fbce7bed262ae74ac372e765 (patch) | |
tree | 63d7b968886ae231a6bb73012dfdd42978b0cc56 /include/uapi | |
parent | bd0779370588386e4a67ba5d0b176cfded8e6a53 (diff) |
netfilter: export xt_rpfilter.h to userland
This file contains the API for the match "rpfilter", hence it should be exported
to userland.
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/linux/netfilter/Kbuild | 1 | ||||
-rw-r--r-- | include/uapi/linux/netfilter/xt_rpfilter.h | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/include/uapi/linux/netfilter/Kbuild b/include/uapi/linux/netfilter/Kbuild index 41115776d76f..dc00927ffd62 100644 --- a/include/uapi/linux/netfilter/Kbuild +++ b/include/uapi/linux/netfilter/Kbuild | |||
@@ -68,6 +68,7 @@ header-y += xt_quota.h | |||
68 | header-y += xt_rateest.h | 68 | header-y += xt_rateest.h |
69 | header-y += xt_realm.h | 69 | header-y += xt_realm.h |
70 | header-y += xt_recent.h | 70 | header-y += xt_recent.h |
71 | header-y += xt_rpfilter.h | ||
71 | header-y += xt_sctp.h | 72 | header-y += xt_sctp.h |
72 | header-y += xt_set.h | 73 | header-y += xt_set.h |
73 | header-y += xt_socket.h | 74 | header-y += xt_socket.h |
diff --git a/include/uapi/linux/netfilter/xt_rpfilter.h b/include/uapi/linux/netfilter/xt_rpfilter.h new file mode 100644 index 000000000000..8358d4f71952 --- /dev/null +++ b/include/uapi/linux/netfilter/xt_rpfilter.h | |||
@@ -0,0 +1,23 @@ | |||
1 | #ifndef _XT_RPATH_H | ||
2 | #define _XT_RPATH_H | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | |||
6 | enum { | ||
7 | XT_RPFILTER_LOOSE = 1 << 0, | ||
8 | XT_RPFILTER_VALID_MARK = 1 << 1, | ||
9 | XT_RPFILTER_ACCEPT_LOCAL = 1 << 2, | ||
10 | XT_RPFILTER_INVERT = 1 << 3, | ||
11 | #ifdef __KERNEL__ | ||
12 | XT_RPFILTER_OPTION_MASK = XT_RPFILTER_LOOSE | | ||
13 | XT_RPFILTER_VALID_MARK | | ||
14 | XT_RPFILTER_ACCEPT_LOCAL | | ||
15 | XT_RPFILTER_INVERT, | ||
16 | #endif | ||
17 | }; | ||
18 | |||
19 | struct xt_rpfilter_info { | ||
20 | __u8 flags; | ||
21 | }; | ||
22 | |||
23 | #endif | ||