mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![Jeremy Sowden](/assets/img/avatar_default.png)
A number of non-UAPI Netfilter header-files contained superfluous "#ifdef __KERNEL__" guards. Removed them. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
34 lines
915 B
C
34 lines
915 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _CONNTRACK_PROTO_GRE_H
|
|
#define _CONNTRACK_PROTO_GRE_H
|
|
#include <asm/byteorder.h>
|
|
#include <net/gre.h>
|
|
#include <net/pptp.h>
|
|
|
|
struct nf_ct_gre {
|
|
unsigned int stream_timeout;
|
|
unsigned int timeout;
|
|
};
|
|
|
|
#include <net/netfilter/nf_conntrack_tuple.h>
|
|
|
|
struct nf_conn;
|
|
|
|
/* structure for original <-> reply keymap */
|
|
struct nf_ct_gre_keymap {
|
|
struct list_head list;
|
|
struct nf_conntrack_tuple tuple;
|
|
struct rcu_head rcu;
|
|
};
|
|
|
|
/* add new tuple->key_reply pair to keymap */
|
|
int nf_ct_gre_keymap_add(struct nf_conn *ct, enum ip_conntrack_dir dir,
|
|
struct nf_conntrack_tuple *t);
|
|
|
|
void nf_ct_gre_keymap_flush(struct net *net);
|
|
/* delete keymap entries */
|
|
void nf_ct_gre_keymap_destroy(struct nf_conn *ct);
|
|
|
|
bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff,
|
|
struct net *net, struct nf_conntrack_tuple *tuple);
|
|
#endif /* _CONNTRACK_PROTO_GRE_H */
|