linux/net/ipv4/tunnel4.c

// SPDX-License-Identifier: GPL-2.0-only
/* tunnel4.c: Generic IP tunnel transformer.
 *
 * Copyright (C) 2003 David S. Miller ([email protected])
 */

#include <linux/init.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/mpls.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <net/icmp.h>
#include <net/ip.h>
#include <net/protocol.h>
#include <net/xfrm.h>

static struct xfrm_tunnel __rcu *tunnel4_handlers __read_mostly;
static struct xfrm_tunnel __rcu *tunnel64_handlers __read_mostly;
static struct xfrm_tunnel __rcu *tunnelmpls4_handlers __read_mostly;
static DEFINE_MUTEX(tunnel4_mutex);

static inline struct xfrm_tunnel __rcu **fam_handlers(unsigned short family)
{}

int xfrm4_tunnel_register(struct xfrm_tunnel *handler, unsigned short family)
{}
EXPORT_SYMBOL();

int xfrm4_tunnel_deregister(struct xfrm_tunnel *handler, unsigned short family)
{}
EXPORT_SYMBOL();

#define for_each_tunnel_rcu(head, handler)	\

static int tunnel4_rcv(struct sk_buff *skb)
{}

#if IS_ENABLED(CONFIG_INET_XFRM_TUNNEL)
static int tunnel4_rcv_cb(struct sk_buff *skb, u8 proto, int err)
{}

static const struct xfrm_input_afinfo tunnel4_input_afinfo =;
#endif

#if IS_ENABLED(CONFIG_IPV6)
static int tunnel64_rcv(struct sk_buff *skb)
{}
#endif

#if IS_ENABLED(CONFIG_MPLS)
static int tunnelmpls4_rcv(struct sk_buff *skb)
{}
#endif

static int tunnel4_err(struct sk_buff *skb, u32 info)
{}

#if IS_ENABLED(CONFIG_IPV6)
static int tunnel64_err(struct sk_buff *skb, u32 info)
{}
#endif

#if IS_ENABLED(CONFIG_MPLS)
static int tunnelmpls4_err(struct sk_buff *skb, u32 info)
{}
#endif

static const struct net_protocol tunnel4_protocol =;

#if IS_ENABLED(CONFIG_IPV6)
static const struct net_protocol tunnel64_protocol =;
#endif

#if IS_ENABLED(CONFIG_MPLS)
static const struct net_protocol tunnelmpls4_protocol =;
#endif

static int __init tunnel4_init(void)
{}

static void __exit tunnel4_fini(void)
{}

module_init();
module_exit(tunnel4_fini);
MODULE_DESCRIPTION();
MODULE_LICENSE();