This file contains the API for the match "rpfilter", hence it should be exported to userland.
Showing the changes to include/uapi/linux (2 of 2 files). Show all
Unified · Split
| @@ -68,6 +68,7 @@ header-y += xt_quota.h · 67 unmodified lines | ||
| 68 | 68 | header-y += xt_rateest.h |
| 69 | 69 | header-y += xt_realm.h |
| 70 | 70 | header-y += xt_recent.h |
| 71 | +header-y += xt_rpfilter.h | |
| 71 | 72 | header-y += xt_sctp.h |
| 72 | 73 | header-y += xt_set.h |
| 73 | 74 | header-y += xt_socket.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 | |