1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef _UAPI_NFNETLINK_H 20 #define _UAPI_NFNETLINK_H 21 #include <linux/types.h> 22 #include <linux/netfilter/nfnetlink_compat.h> 23 enum nfnetlink_groups { 24 NFNLGRP_NONE, 25 #define NFNLGRP_NONE NFNLGRP_NONE 26 NFNLGRP_CONNTRACK_NEW, 27 #define NFNLGRP_CONNTRACK_NEW NFNLGRP_CONNTRACK_NEW 28 NFNLGRP_CONNTRACK_UPDATE, 29 #define NFNLGRP_CONNTRACK_UPDATE NFNLGRP_CONNTRACK_UPDATE 30 NFNLGRP_CONNTRACK_DESTROY, 31 #define NFNLGRP_CONNTRACK_DESTROY NFNLGRP_CONNTRACK_DESTROY 32 NFNLGRP_CONNTRACK_EXP_NEW, 33 #define NFNLGRP_CONNTRACK_EXP_NEW NFNLGRP_CONNTRACK_EXP_NEW 34 NFNLGRP_CONNTRACK_EXP_UPDATE, 35 #define NFNLGRP_CONNTRACK_EXP_UPDATE NFNLGRP_CONNTRACK_EXP_UPDATE 36 NFNLGRP_CONNTRACK_EXP_DESTROY, 37 #define NFNLGRP_CONNTRACK_EXP_DESTROY NFNLGRP_CONNTRACK_EXP_DESTROY 38 NFNLGRP_NFTABLES, 39 #define NFNLGRP_NFTABLES NFNLGRP_NFTABLES 40 NFNLGRP_ACCT_QUOTA, 41 #define NFNLGRP_ACCT_QUOTA NFNLGRP_ACCT_QUOTA 42 NFNLGRP_NFTRACE, 43 #define NFNLGRP_NFTRACE NFNLGRP_NFTRACE 44 __NFNLGRP_MAX, 45 }; 46 #define NFNLGRP_MAX (__NFNLGRP_MAX - 1) 47 struct nfgenmsg { 48 __u8 nfgen_family; 49 __u8 version; 50 __be16 res_id; 51 }; 52 #define NFNETLINK_V0 0 53 #define NFNL_SUBSYS_ID(x) ((x & 0xff00) >> 8) 54 #define NFNL_MSG_TYPE(x) (x & 0x00ff) 55 #define NFNL_SUBSYS_NONE 0 56 #define NFNL_SUBSYS_CTNETLINK 1 57 #define NFNL_SUBSYS_CTNETLINK_EXP 2 58 #define NFNL_SUBSYS_QUEUE 3 59 #define NFNL_SUBSYS_ULOG 4 60 #define NFNL_SUBSYS_OSF 5 61 #define NFNL_SUBSYS_IPSET 6 62 #define NFNL_SUBSYS_ACCT 7 63 #define NFNL_SUBSYS_CTNETLINK_TIMEOUT 8 64 #define NFNL_SUBSYS_CTHELPER 9 65 #define NFNL_SUBSYS_NFTABLES 10 66 #define NFNL_SUBSYS_NFT_COMPAT 11 67 #define NFNL_SUBSYS_COUNT 12 68 #define NFNL_MSG_BATCH_BEGIN NLMSG_MIN_TYPE 69 #define NFNL_MSG_BATCH_END NLMSG_MIN_TYPE + 1 70 enum nfnl_batch_attributes { 71 NFNL_BATCH_UNSPEC, 72 NFNL_BATCH_GENID, 73 __NFNL_BATCH_MAX 74 }; 75 #define NFNL_BATCH_MAX (__NFNL_BATCH_MAX - 1) 76 #endif 77