linux/net/ipv4/ipcomp.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * IP Payload Compression Protocol (IPComp) - RFC3173.
 *
 * Copyright (c) 2003 James Morris <[email protected]>
 *
 * Todo:
 *   - Tunable compression parameters.
 *   - Compression stats.
 *   - Adaptive compression.
 */
#include <linux/module.h>
#include <linux/err.h>
#include <linux/rtnetlink.h>
#include <net/ip.h>
#include <net/xfrm.h>
#include <net/icmp.h>
#include <net/ipcomp.h>
#include <net/protocol.h>
#include <net/sock.h>

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

/* We always hold one tunnel user reference to indicate a tunnel */
static struct xfrm_state *ipcomp_tunnel_create(struct xfrm_state *x)
{}

/*
 * Must be protected by xfrm_cfg_mutex.  State and tunnel user references are
 * always incremented on success.
 */
static int ipcomp_tunnel_attach(struct xfrm_state *x)
{}

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

static int ipcomp4_rcv_cb(struct sk_buff *skb, int err)
{}

static const struct xfrm_type ipcomp_type =;

static struct xfrm4_protocol ipcomp4_protocol =;

static int __init ipcomp4_init(void)
{}

static void __exit ipcomp4_fini(void)
{}

module_init();
module_exit(ipcomp4_fini);

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

MODULE_ALIAS_XFRM_TYPE();