linux/net/ipv6/mip6.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Copyright (C)2003-2006 Helsinki University of Technology
 * Copyright (C)2003-2006 USAGI/WIDE Project
 */
/*
 * Authors:
 *	Noriaki TAKAMIYA @USAGI
 *	Masahide NAKAMURA @USAGI
 */

#define pr_fmt(fmt)

#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/time.h>
#include <linux/ipv6.h>
#include <linux/icmpv6.h>
#include <net/sock.h>
#include <net/ipv6.h>
#include <net/ip6_checksum.h>
#include <net/rawv6.h>
#include <net/xfrm.h>
#include <net/mip6.h>

static inline unsigned int calc_padlen(unsigned int len, unsigned int n)
{}

static inline void *mip6_padn(__u8 *data, __u8 padlen)
{}

static inline void mip6_param_prob(struct sk_buff *skb, u8 code, int pos)
{}

static int mip6_mh_len(int type)
{}

static int mip6_mh_filter(struct sock *sk, struct sk_buff *skb)
{}

struct mip6_report_rate_limiter {};

static struct mip6_report_rate_limiter mip6_report_rl =;

static int mip6_destopt_input(struct xfrm_state *x, struct sk_buff *skb)
{}

/* Destination Option Header is inserted.
 * IP Header's src address is replaced with Home Address Option in
 * Destination Option Header.
 */
static int mip6_destopt_output(struct xfrm_state *x, struct sk_buff *skb)
{}

static inline int mip6_report_rl_allow(ktime_t stamp,
				       const struct in6_addr *dst,
				       const struct in6_addr *src, int iif)
{}

static int mip6_destopt_reject(struct xfrm_state *x, struct sk_buff *skb,
			       const struct flowi *fl)
{}

static int mip6_destopt_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack)
{}

/*
 * Do nothing about destroying since it has no specific operation for
 * destination options header unlike IPsec protocols.
 */
static void mip6_destopt_destroy(struct xfrm_state *x)
{}

static const struct xfrm_type mip6_destopt_type =;

static int mip6_rthdr_input(struct xfrm_state *x, struct sk_buff *skb)
{}

/* Routing Header type 2 is inserted.
 * IP Header's dst address is replaced with Routing Header's Home Address.
 */
static int mip6_rthdr_output(struct xfrm_state *x, struct sk_buff *skb)
{}

static int mip6_rthdr_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack)
{}

/*
 * Do nothing about destroying since it has no specific operation for routing
 * header type 2 unlike IPsec protocols.
 */
static void mip6_rthdr_destroy(struct xfrm_state *x)
{}

static const struct xfrm_type mip6_rthdr_type =;

static int __init mip6_init(void)
{}

static void __exit mip6_fini(void)
{}

module_init();
module_exit(mip6_fini);

MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS_XFRM_TYPE();
MODULE_ALIAS_XFRM_TYPE();