www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / kernel / linux / include / linux / netfilter_ipv4 / ip_conntrack_pt.h
1 #ifndef _IP_CONNTRACK_PT_H
2 #define _IP_CONNTRACK_PT_H
3 /* PT tracking. */
4
5 #ifndef __KERNEL__
6 #error Only in kernel.
7 #endif
8
9 #include <linux/netfilter_ipv4/lockhelp.h>
10
11 /* Protects pt part of conntracks */
12 DECLARE_LOCK_EXTERN(ip_pt_lock);
13
14 enum ip_ct_pt_type
15 {
16         /* from client */
17         IP_CT_OUTGOING_PORT,
18 };
19
20 /* We record pt ip/port here: all in
21    host order. */
22 struct ip_ct_pt
23 {
24         /* This tells NAT that this is an pt connection */
25         int is_pt;
26         /* 0 means not found yet */
27         u_int32_t len;
28         enum ip_ct_pt_type pttype;
29         /* Port that was to be used */
30         u_int16_t port;
31 };
32
33 #endif /* _IP_CONNTRACK_PT_H */