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
68header-y += xt_rateest.h68header-y += xt_rateest.h
69header-y += xt_realm.h69header-y += xt_realm.h
70header-y += xt_recent.h70header-y += xt_recent.h
71header-y += xt_rpfilter.h
71header-y += xt_sctp.h72header-y += xt_sctp.h
72header-y += xt_set.h73header-y += xt_set.h
73header-y += xt_socket.h74header-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
6enum {
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
19struct xt_rpfilter_info {
20 __u8 flags;
21};
22
23#endif