nf_conntrack_tuple_common.h revision 48af7cb2e205dcc2f09a1a1b8a1a37c93e1943f0
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 _NF_CONNTRACK_TUPLE_COMMON_H
20#define _NF_CONNTRACK_TUPLE_COMMON_H
21#include <linux/types.h>
22#include <linux/netfilter.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <linux/netfilter/nf_conntrack_common.h>
25enum ip_conntrack_dir {
26  IP_CT_DIR_ORIGINAL,
27  IP_CT_DIR_REPLY,
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  IP_CT_DIR_MAX
30};
31union nf_conntrack_man_proto {
32  __be16 all;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  struct {
35    __be16 port;
36  } tcp;
37  struct {
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39    __be16 port;
40  } udp;
41  struct {
42    __be16 id;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  } icmp;
45  struct {
46    __be16 port;
47  } dccp;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  struct {
50    __be16 port;
51  } sctp;
52  struct {
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54    __be16 key;
55  } gre;
56};
57#define CTINFO2DIR(ctinfo) ((ctinfo) >= IP_CT_IS_REPLY ? IP_CT_DIR_REPLY : IP_CT_DIR_ORIGINAL)
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59#endif
60