brcm80211: fmac: change firmware/nvram name to be more generic
[linux-2.6.git] / include / linux / netfilter_ipv4 / nf_nat.h
blob7a861d09fc8698b6d38490b341f315ab5ed12291
1 #ifndef _LINUX_NF_NAT_H
2 #define _LINUX_NF_NAT_H
4 #include <linux/types.h>
6 #define IP_NAT_RANGE_MAP_IPS 1
7 #define IP_NAT_RANGE_PROTO_SPECIFIED 2
8 #define IP_NAT_RANGE_PROTO_RANDOM 4
9 #define IP_NAT_RANGE_PERSISTENT 8
11 /* The protocol-specific manipulable parts of the tuple. */
12 union nf_conntrack_man_proto {
13 /* Add other protocols here. */
14 __be16 all;
16 struct {
17 __be16 port;
18 } tcp;
19 struct {
20 __be16 port;
21 } udp;
22 struct {
23 __be16 id;
24 } icmp;
25 struct {
26 __be16 port;
27 } dccp;
28 struct {
29 __be16 port;
30 } sctp;
31 struct {
32 __be16 key; /* GRE key is 32bit, PPtP only uses 16bit */
33 } gre;
36 /* Single range specification. */
37 struct nf_nat_range {
38 /* Set to OR of flags above. */
39 unsigned int flags;
41 /* Inclusive: network order. */
42 __be32 min_ip, max_ip;
44 /* Inclusive: network order */
45 union nf_conntrack_man_proto min, max;
48 /* For backwards compat: don't use in modern code. */
49 struct nf_nat_multi_range_compat {
50 unsigned int rangesize; /* Must be 1. */
52 /* hangs off end. */
53 struct nf_nat_range range[1];
56 #define nf_nat_multi_range nf_nat_multi_range_compat
58 #endif