nfnetlink.h revision 106b3a8a7dc03c19a45e322de425ac56aafac358
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/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24enum nfnetlink_groups { 25 NFNLGRP_NONE, 26#define NFNLGRP_NONE NFNLGRP_NONE 27 NFNLGRP_CONNTRACK_NEW, 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29#define NFNLGRP_CONNTRACK_NEW NFNLGRP_CONNTRACK_NEW 30 NFNLGRP_CONNTRACK_UPDATE, 31#define NFNLGRP_CONNTRACK_UPDATE NFNLGRP_CONNTRACK_UPDATE 32 NFNLGRP_CONNTRACK_DESTROY, 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34#define NFNLGRP_CONNTRACK_DESTROY NFNLGRP_CONNTRACK_DESTROY 35 NFNLGRP_CONNTRACK_EXP_NEW, 36#define NFNLGRP_CONNTRACK_EXP_NEW NFNLGRP_CONNTRACK_EXP_NEW 37 NFNLGRP_CONNTRACK_EXP_UPDATE, 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39#define NFNLGRP_CONNTRACK_EXP_UPDATE NFNLGRP_CONNTRACK_EXP_UPDATE 40 NFNLGRP_CONNTRACK_EXP_DESTROY, 41#define NFNLGRP_CONNTRACK_EXP_DESTROY NFNLGRP_CONNTRACK_EXP_DESTROY 42 NFNLGRP_NFTABLES, 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44#define NFNLGRP_NFTABLES NFNLGRP_NFTABLES 45 NFNLGRP_ACCT_QUOTA, 46#define NFNLGRP_ACCT_QUOTA NFNLGRP_ACCT_QUOTA 47 NFNLGRP_NFTRACE, 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49#define NFNLGRP_NFTRACE NFNLGRP_NFTRACE 50 __NFNLGRP_MAX, 51}; 52#define NFNLGRP_MAX (__NFNLGRP_MAX - 1) 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54struct nfgenmsg { 55 __u8 nfgen_family; 56 __u8 version; 57 __be16 res_id; 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59}; 60#define NFNETLINK_V0 0 61#define NFNL_SUBSYS_ID(x) ((x & 0xff00) >> 8) 62#define NFNL_MSG_TYPE(x) (x & 0x00ff) 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64#define NFNL_SUBSYS_NONE 0 65#define NFNL_SUBSYS_CTNETLINK 1 66#define NFNL_SUBSYS_CTNETLINK_EXP 2 67#define NFNL_SUBSYS_QUEUE 3 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69#define NFNL_SUBSYS_ULOG 4 70#define NFNL_SUBSYS_OSF 5 71#define NFNL_SUBSYS_IPSET 6 72#define NFNL_SUBSYS_ACCT 7 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74#define NFNL_SUBSYS_CTNETLINK_TIMEOUT 8 75#define NFNL_SUBSYS_CTHELPER 9 76#define NFNL_SUBSYS_NFTABLES 10 77#define NFNL_SUBSYS_NFT_COMPAT 11 78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79#define NFNL_SUBSYS_COUNT 12 80#define NFNL_MSG_BATCH_BEGIN NLMSG_MIN_TYPE 81#define NFNL_MSG_BATCH_END NLMSG_MIN_TYPE + 1 82#endif 83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84