netfilter: export xt_rpfilter.h to userland
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Tue, 13 Aug 2013 13:05:38 +0000 (15:05 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 14 Aug 2013 08:47:15 +0000 (10:47 +0200)
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>
include/linux/netfilter/xt_rpfilter.h [deleted file]
include/uapi/linux/netfilter/Kbuild
include/uapi/linux/netfilter/xt_rpfilter.h [new file with mode: 0644]

diff --git a/include/linux/netfilter/xt_rpfilter.h b/include/linux/netfilter/xt_rpfilter.h
deleted file mode 100644 (file)
index 8358d4f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#ifndef _XT_RPATH_H
-#define _XT_RPATH_H
-
-#include <linux/types.h>
-
-enum {
-       XT_RPFILTER_LOOSE = 1 << 0,
-       XT_RPFILTER_VALID_MARK = 1 << 1,
-       XT_RPFILTER_ACCEPT_LOCAL = 1 << 2,
-       XT_RPFILTER_INVERT = 1 << 3,
-#ifdef __KERNEL__
-       XT_RPFILTER_OPTION_MASK = XT_RPFILTER_LOOSE |
-                                 XT_RPFILTER_VALID_MARK |
-                                 XT_RPFILTER_ACCEPT_LOCAL |
-                                 XT_RPFILTER_INVERT,
-#endif
-};
-
-struct xt_rpfilter_info {
-       __u8 flags;
-};
-
-#endif
index 41115776d76f74996a0815e044533fc5e5ee8f78..dc00927ffd62c719a20b620e84e4d421650bd814 100644 (file)
@@ -68,6 +68,7 @@ header-y += xt_quota.h
 header-y += xt_rateest.h
 header-y += xt_realm.h
 header-y += xt_recent.h
+header-y += xt_rpfilter.h
 header-y += xt_sctp.h
 header-y += xt_set.h
 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 (file)
index 0000000..8358d4f
--- /dev/null
@@ -0,0 +1,23 @@
+#ifndef _XT_RPATH_H
+#define _XT_RPATH_H
+
+#include <linux/types.h>
+
+enum {
+       XT_RPFILTER_LOOSE = 1 << 0,
+       XT_RPFILTER_VALID_MARK = 1 << 1,
+       XT_RPFILTER_ACCEPT_LOCAL = 1 << 2,
+       XT_RPFILTER_INVERT = 1 << 3,
+#ifdef __KERNEL__
+       XT_RPFILTER_OPTION_MASK = XT_RPFILTER_LOOSE |
+                                 XT_RPFILTER_VALID_MARK |
+                                 XT_RPFILTER_ACCEPT_LOCAL |
+                                 XT_RPFILTER_INVERT,
+#endif
+};
+
+struct xt_rpfilter_info {
+       __u8 flags;
+};
+
+#endif