History

netfilter: export xt_rpfilter.h to userland

This file contains the API for the match "rpfilter", hence it should be exported to userland.

Nicolas Dichtel committed 13 years ago

Commit f0c03951 parent bd077932 files · +1 −0Browse files

Showing the changes to include/uapi/linux (2 of 2 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/netfilter/Kbuild +1 −0
  2. include/uapi/linux/netfilter/xt_rpfilter.h +23 −0
include/uapi/linux/netfilter/Kbuild+1−0
@@ -68,6 +68,7 @@ header-y += xt_quota.h · 67 unmodified lines
6868 header-y += xt_rateest.h
6969 header-y += xt_realm.h
7070 header-y += xt_recent.h
71+header-y += xt_rpfilter.h
7172 header-y += xt_sctp.h
7273 header-y += xt_set.h
7374 header-y += xt_socket.h
include/uapi/linux/netfilter/xt_rpfilter.h+23−0
@@ -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