]> git.ipfire.org Git - thirdparty/kernel/linux.git/blame - include/linux/netfilter/nf_conntrack_proto_gre.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[thirdparty/kernel/linux.git] / include / linux / netfilter / nf_conntrack_proto_gre.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
f09943fe
PM
2#ifndef _CONNTRACK_PROTO_GRE_H
3#define _CONNTRACK_PROTO_GRE_H
4#include <asm/byteorder.h>
ecc6569f
GF
5#include <net/gre.h>
6#include <net/pptp.h>
f09943fe 7
f09943fe
PM
8struct nf_ct_gre {
9 unsigned int stream_timeout;
10 unsigned int timeout;
11};
12
13#ifdef __KERNEL__
14#include <net/netfilter/nf_conntrack_tuple.h>
15
16struct nf_conn;
17
18/* structure for original <-> reply keymap */
19struct nf_ct_gre_keymap {
20 struct list_head list;
21 struct nf_conntrack_tuple tuple;
22};
23
24/* add new tuple->key_reply pair to keymap */
25int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir,
26 struct nf_conntrack_tuple *t);
27
28/* delete keymap entries */
29void nf_ct_gre_keymap_destroy(struct nf_conn *ct);
30
a0f4ecf3 31void nf_nat_need_gre(void);
f09943fe
PM
32
33#endif /* __KERNEL__ */
34#endif /* _CONNTRACK_PROTO_GRE_H */