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 tuple->key_reply pairs to keymap */ 22 bool nf_ct_gre_keymap_add(struct nf_conn *ct, 23 const struct nf_conntrack_tuple *orig, 24 const struct nf_conntrack_tuple *repl); 25 26 /* delete keymap entries */ 27 void nf_ct_gre_keymap_destroy(struct nf_conn *ct); 28 29 bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, 30 struct net *net, struct nf_conntrack_tuple *tuple); 31 #endif /* _CONNTRACK_PROTO_GRE_H */ 32