Merge tag 'mm-nonmm-stable-2024-05-19-11-56' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-block.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
f09943fe
PM
13#include <net/netfilter/nf_conntrack_tuple.h>
14
15struct nf_conn;
16
17/* structure for original <-> reply keymap */
18struct nf_ct_gre_keymap {
19 struct list_head list;
20 struct nf_conntrack_tuple tuple;
202e651c 21 struct rcu_head rcu;
f09943fe
PM
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
df5e1629
FW
31bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff,
32 struct net *net, struct nf_conntrack_tuple *tuple);
f09943fe 33#endif /* _CONNTRACK_PROTO_GRE_H */