GNU Linux-libre 4.9.309-gnu1
[releases.git] / include / linux / netfilter / nf_conntrack_proto_gre.h
1 #ifndef _CONNTRACK_PROTO_GRE_H
2 #define _CONNTRACK_PROTO_GRE_H
3 #include <asm/byteorder.h>
4 #include <net/gre.h>
5 #include <net/pptp.h>
6
7 struct nf_ct_gre {
8         unsigned int stream_timeout;
9         unsigned int timeout;
10 };
11
12 #ifdef __KERNEL__
13 #include <net/netfilter/nf_conntrack_tuple.h>
14
15 struct nf_conn;
16
17 /* structure for original <-> reply keymap */
18 struct nf_ct_gre_keymap {
19         struct list_head list;
20         struct nf_conntrack_tuple tuple;
21 };
22
23 /* add new tuple->key_reply pair to keymap */
24 int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir,
25                          struct nf_conntrack_tuple *t);
26
27 /* delete keymap entries */
28 void nf_ct_gre_keymap_destroy(struct nf_conn *ct);
29
30 void nf_nat_need_gre(void);
31
32 #endif /* __KERNEL__ */
33 #endif /* _CONNTRACK_PROTO_GRE_H */