aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-06-02 09:04:21 -0400
committerDavid S. Miller <davem@davemloft.net>2018-06-02 09:04:21 -0400
commit1ffdd8e1643f6ce28792edd3314be84167faabf1 (patch)
treed76a1e63f11146b3750e7f20eeb93a00bb75c337 /include/uapi/linux
parentf39c6b29ae1d3727d9c65a4ab99d5150b558be5e (diff)
parentd12e12299a6915fc10131602cca41170e46ae755 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
Pablo Neira Ayuso says: ==================== Netfilter/IPVS updates for net-next The following patchset contains Netfilter/IPVS updates for your net-next tree, the most relevant things in this batch are: 1) Compile masquerade infrastructure into NAT module, from Florian Westphal. Same thing with the redirection support. 2) Abort transaction if early initialization of the commit phase fails. Also from Florian. 3) Get rid of synchronize_rcu() by using rule array in nf_tables, from Florian. 4) Abort nf_tables batch if fatal signal is pending, from Florian. 5) Use .call_rcu nfnetlink from nf_tables to make dumps fully lockless. From Florian Westphal. 6) Support to match transparent sockets from nf_tables, from Máté Eckl. 7) Audit support for nf_tables, from Phil Sutter. 8) Validate chain dependencies from commit phase, fall back to fine grain validation only in case of errors. 9) Attach dst to skbuff from netfilter flowtable packet path, from Jason A. Donenfeld. 10) Use artificial maximum attribute cap to remove VLA from nfnetlink. Patch from Kees Cook. 11) Add extension to allow to forward packets through neighbour layer. 12) Add IPv6 conntrack helper support to IPVS, from Julian Anastasov. 13) Add IPv6 FTP conntrack support to IPVS, from Julian Anastasov. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/netfilter/nf_tables.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h
index 9c71f024f9cc..a089af092a29 100644
--- a/include/uapi/linux/netfilter/nf_tables.h
+++ b/include/uapi/linux/netfilter/nf_tables.h
@@ -905,6 +905,31 @@ enum nft_rt_attributes {
905#define NFTA_RT_MAX (__NFTA_RT_MAX - 1) 905#define NFTA_RT_MAX (__NFTA_RT_MAX - 1)
906 906
907/** 907/**
908 * enum nft_socket_attributes - nf_tables socket expression netlink attributes
909 *
910 * @NFTA_SOCKET_KEY: socket key to match
911 * @NFTA_SOCKET_DREG: destination register
912 */
913enum nft_socket_attributes {
914 NFTA_SOCKET_UNSPEC,
915 NFTA_SOCKET_KEY,
916 NFTA_SOCKET_DREG,
917 __NFTA_SOCKET_MAX
918};
919#define NFTA_SOCKET_MAX (__NFTA_SOCKET_MAX - 1)
920
921/*
922 * enum nft_socket_keys - nf_tables socket expression keys
923 *
924 * @NFT_SOCKET_TRANSPARENT: Value of the IP(V6)_TRANSPARENT socket option_
925 */
926enum nft_socket_keys {
927 NFT_SOCKET_TRANSPARENT,
928 __NFT_SOCKET_MAX
929};
930#define NFT_SOCKET_MAX (__NFT_SOCKET_MAX - 1)
931
932/**
908 * enum nft_ct_keys - nf_tables ct expression keys 933 * enum nft_ct_keys - nf_tables ct expression keys
909 * 934 *
910 * @NFT_CT_STATE: conntrack state (bitmask of enum ip_conntrack_info) 935 * @NFT_CT_STATE: conntrack state (bitmask of enum ip_conntrack_info)
@@ -1056,6 +1081,11 @@ enum nft_log_attributes {
1056#define NFTA_LOG_MAX (__NFTA_LOG_MAX - 1) 1081#define NFTA_LOG_MAX (__NFTA_LOG_MAX - 1)
1057 1082
1058/** 1083/**
1084 * LOGLEVEL_AUDIT - a pseudo log level enabling audit logging
1085 */
1086#define LOGLEVEL_AUDIT 8
1087
1088/**
1059 * enum nft_queue_attributes - nf_tables queue expression netlink attributes 1089 * enum nft_queue_attributes - nf_tables queue expression netlink attributes
1060 * 1090 *
1061 * @NFTA_QUEUE_NUM: netlink queue to send messages to (NLA_U16) 1091 * @NFTA_QUEUE_NUM: netlink queue to send messages to (NLA_U16)
@@ -1230,10 +1260,14 @@ enum nft_dup_attributes {
1230 * enum nft_fwd_attributes - nf_tables fwd expression netlink attributes 1260 * enum nft_fwd_attributes - nf_tables fwd expression netlink attributes
1231 * 1261 *
1232 * @NFTA_FWD_SREG_DEV: source register of output interface (NLA_U32: nft_register) 1262 * @NFTA_FWD_SREG_DEV: source register of output interface (NLA_U32: nft_register)
1263 * @NFTA_FWD_SREG_ADDR: source register of destination address (NLA_U32: nft_register)
1264 * @NFTA_FWD_NFPROTO: layer 3 family of source register address (NLA_U32: enum nfproto)
1233 */ 1265 */
1234enum nft_fwd_attributes { 1266enum nft_fwd_attributes {
1235 NFTA_FWD_UNSPEC, 1267 NFTA_FWD_UNSPEC,
1236 NFTA_FWD_SREG_DEV, 1268 NFTA_FWD_SREG_DEV,
1269 NFTA_FWD_SREG_ADDR,
1270 NFTA_FWD_NFPROTO,
1237 __NFTA_FWD_MAX 1271 __NFTA_FWD_MAX
1238}; 1272};
1239#define NFTA_FWD_MAX (__NFTA_FWD_MAX - 1) 1273#define NFTA_FWD_MAX (__NFTA_FWD_MAX - 1)