linux/net/ipv4/gre_demux.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *	GRE over IPv4 demultiplexer driver
 *
 *	Authors: Dmitry Kozlov ([email protected])
 */

#define pr_fmt(fmt)

#include <linux/module.h>
#include <linux/if.h>
#include <linux/icmp.h>
#include <linux/kernel.h>
#include <linux/kmod.h>
#include <linux/skbuff.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/netdevice.h>
#include <linux/if_tunnel.h>
#include <linux/spinlock.h>
#include <net/protocol.h>
#include <net/gre.h>
#include <net/erspan.h>

#include <net/icmp.h>
#include <net/route.h>
#include <net/xfrm.h>

static const struct gre_protocol __rcu *gre_proto[GREPROTO_MAX] __read_mostly;

int gre_add_protocol(const struct gre_protocol *proto, u8 version)
{}
EXPORT_SYMBOL_GPL();

int gre_del_protocol(const struct gre_protocol *proto, u8 version)
{}
EXPORT_SYMBOL_GPL();

/* Fills in tpi and returns header length to be pulled.
 * Note that caller must use pskb_may_pull() before pulling GRE header.
 */
int gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi,
		     bool *csum_err, __be16 proto, int nhs)
{}
EXPORT_SYMBOL();

static int gre_rcv(struct sk_buff *skb)
{}

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

static const struct net_protocol net_gre_protocol =;

static int __init gre_init(void)
{}

static void __exit gre_exit(void)
{}

module_init();
module_exit(gre_exit);

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();