linux/net/ipv6/addrconf_core.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * IPv6 library code, needed by static components when full IPv6 support is
 * not configured or static.
 */

#include <linux/export.h>
#include <net/ipv6.h>
#include <net/ipv6_stubs.h>
#include <net/addrconf.h>
#include <net/ip.h>

/* if ipv6 module registers this function is used by xfrm to force all
 * sockets to relookup their nodes - this is fairly expensive, be
 * careful
 */
void (*__fib6_flush_trees)(struct net *);
EXPORT_SYMBOL();

#define IPV6_ADDR_SCOPE_TYPE(scope)

static inline unsigned int ipv6_addr_scope2type(unsigned int scope)
{}

int __ipv6_addr_type(const struct in6_addr *addr)
{}
EXPORT_SYMBOL();

static ATOMIC_NOTIFIER_HEAD(inet6addr_chain);
static BLOCKING_NOTIFIER_HEAD(inet6addr_validator_chain);

int register_inet6addr_notifier(struct notifier_block *nb)
{}
EXPORT_SYMBOL();

int unregister_inet6addr_notifier(struct notifier_block *nb)
{}
EXPORT_SYMBOL();

int inet6addr_notifier_call_chain(unsigned long val, void *v)
{}
EXPORT_SYMBOL();

int register_inet6addr_validator_notifier(struct notifier_block *nb)
{}
EXPORT_SYMBOL();

int unregister_inet6addr_validator_notifier(struct notifier_block *nb)
{}
EXPORT_SYMBOL();

int inet6addr_validator_notifier_call_chain(unsigned long val, void *v)
{}
EXPORT_SYMBOL();

static struct dst_entry *eafnosupport_ipv6_dst_lookup_flow(struct net *net,
							   const struct sock *sk,
							   struct flowi6 *fl6,
							   const struct in6_addr *final_dst)
{}

static int eafnosupport_ipv6_route_input(struct sk_buff *skb)
{}

static struct fib6_table *eafnosupport_fib6_get_table(struct net *net, u32 id)
{}

static int
eafnosupport_fib6_table_lookup(struct net *net, struct fib6_table *table,
			       int oif, struct flowi6 *fl6,
			       struct fib6_result *res, int flags)
{}

static int
eafnosupport_fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
			 struct fib6_result *res, int flags)
{}

static void
eafnosupport_fib6_select_path(const struct net *net, struct fib6_result *res,
			      struct flowi6 *fl6, int oif, bool have_oif_match,
			      const struct sk_buff *skb, int strict)
{}

static u32
eafnosupport_ip6_mtu_from_fib6(const struct fib6_result *res,
			       const struct in6_addr *daddr,
			       const struct in6_addr *saddr)
{}

static int eafnosupport_fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
				     struct fib6_config *cfg, gfp_t gfp_flags,
				     struct netlink_ext_ack *extack)
{}

static int eafnosupport_ip6_del_rt(struct net *net, struct fib6_info *rt,
				   bool skip_notify)
{}

static int eafnosupport_ipv6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
				      int (*output)(struct net *, struct sock *, struct sk_buff *))
{}

static struct net_device *eafnosupport_ipv6_dev_find(struct net *net, const struct in6_addr *addr,
						     struct net_device *dev)
{}

const struct ipv6_stub *ipv6_stub __read_mostly =;
EXPORT_SYMBOL_GPL();

/* IPv6 Wildcard Address and Loopback Address defined by RFC2553 */
const struct in6_addr in6addr_loopback __aligned(BITS_PER_LONG/8)
	=;
EXPORT_SYMBOL();
const struct in6_addr in6addr_any __aligned(BITS_PER_LONG/8)
	=;
EXPORT_SYMBOL();
const struct in6_addr in6addr_linklocal_allnodes __aligned(BITS_PER_LONG/8)
	=;
EXPORT_SYMBOL();
const struct in6_addr in6addr_linklocal_allrouters __aligned(BITS_PER_LONG/8)
	=;
EXPORT_SYMBOL();
const struct in6_addr in6addr_interfacelocal_allnodes __aligned(BITS_PER_LONG/8)
	=;
EXPORT_SYMBOL();
const struct in6_addr in6addr_interfacelocal_allrouters __aligned(BITS_PER_LONG/8)
	=;
EXPORT_SYMBOL();
const struct in6_addr in6addr_sitelocal_allrouters __aligned(BITS_PER_LONG/8)
	=;
EXPORT_SYMBOL();

static void snmp6_free_dev(struct inet6_dev *idev)
{}

static void in6_dev_finish_destroy_rcu(struct rcu_head *head)
{}

/* Nobody refers to this device, we may destroy it. */

void in6_dev_finish_destroy(struct inet6_dev *idev)
{}
EXPORT_SYMBOL();