#include <linux/capability.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/lwtunnel.h>
#include <linux/in.h>
#include <linux/init.h>
#include <linux/err.h>
#include <net/lwtunnel.h>
#include <net/rtnetlink.h>
#include <net/ip6_fib.h>
#include <net/rtnh.h>
DEFINE_STATIC_KEY_FALSE(nf_hooks_lwtunnel_enabled);
EXPORT_SYMBOL_GPL(…);
#ifdef CONFIG_MODULES
static const char *lwtunnel_encap_str(enum lwtunnel_encap_types encap_type)
{ … }
#endif
struct lwtunnel_state *lwtunnel_state_alloc(int encap_len)
{ … }
EXPORT_SYMBOL_GPL(…);
static const struct lwtunnel_encap_ops __rcu *
lwtun_encaps[LWTUNNEL_ENCAP_MAX + 1] __read_mostly;
int lwtunnel_encap_add_ops(const struct lwtunnel_encap_ops *ops,
unsigned int num)
{ … }
EXPORT_SYMBOL_GPL(…);
int lwtunnel_encap_del_ops(const struct lwtunnel_encap_ops *ops,
unsigned int encap_type)
{ … }
EXPORT_SYMBOL_GPL(…);
int lwtunnel_build_state(struct net *net, u16 encap_type,
struct nlattr *encap, unsigned int family,
const void *cfg, struct lwtunnel_state **lws,
struct netlink_ext_ack *extack)
{ … }
EXPORT_SYMBOL_GPL(…);
int lwtunnel_valid_encap_type(u16 encap_type, struct netlink_ext_ack *extack)
{ … }
EXPORT_SYMBOL_GPL(…);
int lwtunnel_valid_encap_type_attr(struct nlattr *attr, int remaining,
struct netlink_ext_ack *extack)
{ … }
EXPORT_SYMBOL_GPL(…);
void lwtstate_free(struct lwtunnel_state *lws)
{ … }
EXPORT_SYMBOL_GPL(…);
int lwtunnel_fill_encap(struct sk_buff *skb, struct lwtunnel_state *lwtstate,
int encap_attr, int encap_type_attr)
{ … }
EXPORT_SYMBOL_GPL(…);
int lwtunnel_get_encap_size(struct lwtunnel_state *lwtstate)
{ … }
EXPORT_SYMBOL_GPL(…);
int lwtunnel_cmp_encap(struct lwtunnel_state *a, struct lwtunnel_state *b)
{ … }
EXPORT_SYMBOL_GPL(…);
int lwtunnel_output(struct net *net, struct sock *sk, struct sk_buff *skb)
{ … }
EXPORT_SYMBOL_GPL(…);
int lwtunnel_xmit(struct sk_buff *skb)
{ … }
EXPORT_SYMBOL_GPL(…);
int lwtunnel_input(struct sk_buff *skb)
{ … }
EXPORT_SYMBOL_GPL(…);