1 /* $Id: tiny_nf_nat.h,v 1.1 2015/04/30 09:05:08 nanard Exp $ */
2 /* Only what miniupnpd needs, until linux-libc-dev gains nf_nat.h */
7 #include <linux/types.h>
9 #define IP_NAT_RANGE_MAP_IPS 1
10 #define IP_NAT_RANGE_PROTO_SPECIFIED 2
11 #define IP_NAT_RANGE_PROTO_RANDOM 4
12 #define IP_NAT_RANGE_PERSISTENT 8
14 union nf_conntrack_man_proto
{
16 struct { __be16 port
; } tcp
;
17 struct { __be16 port
; } udp
;
18 struct { __be16 id
; } icmp
;
19 struct { __be16 port
; } dccp
;
20 struct { __be16 port
; } sctp
;
21 struct { __be16 key
; } gre
;
26 __be32 min_ip
, max_ip
;
27 union nf_conntrack_man_proto min
, max
;
30 struct nf_nat_multi_range_compat
{
31 unsigned int rangesize
;
32 struct nf_nat_range range
[1];
35 #define nf_nat_multi_range nf_nat_multi_range_compat
37 #endif /*TINY_NF_NAT_H*/