linux/net/ipv6/protocol.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * INET		An implementation of the TCP/IP protocol suite for the LINUX
 *		operating system.  INET is implemented using the  BSD Socket
 *		interface as the means of communication with the user level.
 *
 *		PF_INET6 protocol dispatch tables.
 *
 * Authors:	Pedro Roque	<[email protected]>
 */

/*
 *      Changes:
 *
 *      Vince Laviano ([email protected])       16 May 2001
 *      - Removed unused variable 'inet6_protocol_base'
 *      - Modified inet6_del_protocol() to correctly maintain copy bit.
 */
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/spinlock.h>
#include <net/protocol.h>

#if IS_ENABLED(CONFIG_IPV6)
struct inet6_protocol __rcu *inet6_protos[MAX_INET_PROTOS] __read_mostly;
EXPORT_SYMBOL();

int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char protocol)
{}
EXPORT_SYMBOL();

int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char protocol)
{}
EXPORT_SYMBOL();
#endif

const struct net_offload __rcu *inet6_offloads[MAX_INET_PROTOS] __read_mostly;
EXPORT_SYMBOL();

int inet6_add_offload(const struct net_offload *prot, unsigned char protocol)
{}
EXPORT_SYMBOL();

int inet6_del_offload(const struct net_offload *prot, unsigned char protocol)
{}
EXPORT_SYMBOL();