Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nf_conntrack_tuple_common.h
Go to the documentation of this file.
1 #ifndef _NF_CONNTRACK_TUPLE_COMMON_H
2 #define _NF_CONNTRACK_TUPLE_COMMON_H
3 
8 };
9 
10 /* The protocol-specific manipulable parts of the tuple: always in
11  * network order
12  */
14  /* Add other protocols here. */
16 
17  struct {
19  } tcp;
20  struct {
21  __be16 port;
22  } udp;
23  struct {
25  } icmp;
26  struct {
27  __be16 port;
28  } dccp;
29  struct {
30  __be16 port;
31  } sctp;
32  struct {
33  __be16 key; /* GRE key is 32bit, PPtP only uses 16bit */
34  } gre;
35 };
36 
37 #define CTINFO2DIR(ctinfo) ((ctinfo) >= IP_CT_IS_REPLY ? IP_CT_DIR_REPLY : IP_CT_DIR_ORIGINAL)
38 
39 #endif /* _NF_CONNTRACK_TUPLE_COMMON_H */