linux/net/netfilter/xt_ipcomp.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*  Kernel module to match IPComp parameters for IPv4 and IPv6
 *
 *  Copyright (C) 2013 WindRiver
 *
 *  Author:
 *  Fan Du <[email protected]>
 *
 *  Based on:
 *  net/netfilter/xt_esp.c
 */

#define pr_fmt(fmt)
#include <linux/in.h>
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/ip.h>

#include <linux/netfilter/xt_ipcomp.h>
#include <linux/netfilter/x_tables.h>

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

/* Returns 1 if the spi is matched by the range, 0 otherwise */
static inline bool
spi_match(u_int32_t min, u_int32_t max, u_int32_t spi, bool invert)
{}

static bool comp_mt(const struct sk_buff *skb, struct xt_action_param *par)
{}

static int comp_mt_check(const struct xt_mtchk_param *par)
{}

static struct xt_match comp_mt_reg[] __read_mostly =;

static int __init comp_mt_init(void)
{}

static void __exit comp_mt_exit(void)
{}

module_init();
module_exit(comp_mt_exit);