1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _CONNTRACK_PROTO_GRE_H 3 #define _CONNTRACK_PROTO_GRE_H 4 5 struct nf_ct_gre { 6 unsigned int stream_timeout; 7 unsigned int timeout; 8 }; 9 10 #include <net/netfilter/nf_conntrack_tuple.h> 11 12 struct nf_conn; 13 14 /* structure for original <-> reply keymap */ 15 struct nf_ct_gre_keymap { 16 struct list_head list; 17 struct nf_conntrack_tuple tuple; 18 struct rcu_head rcu; 19 }; 20 21 /* add new tuple->key_reply pair to keymap */ 22 int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir, 23 struct nf_conntrack_tuple *t); 24 25 /* delete keymap entries */ 26 void nf_ct_gre_keymap_destroy(struct nf_conn *ct); 27 28 bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, 29 struct net *net, struct nf_conntrack_tuple *tuple); 30 #endif /* _CONNTRACK_PROTO_GRE_H */ 31