linux/net/netfilter/xt_ipvs.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 *	xt_ipvs - kernel module to match IPVS connection properties
 *
 *	Author: Hannes Eder <[email protected]>
 */

#define pr_fmt(fmt)

#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/spinlock.h>
#include <linux/skbuff.h>
#ifdef CONFIG_IP_VS_IPV6
#include <net/ipv6.h>
#endif
#include <linux/ip_vs.h>
#include <linux/types.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_ipvs.h>
#include <net/netfilter/nf_conntrack.h>

#include <net/ip_vs.h>

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

/* borrowed from xt_conntrack */
static bool ipvs_mt_addrcmp(const union nf_inet_addr *kaddr,
			    const union nf_inet_addr *uaddr,
			    const union nf_inet_addr *umask,
			    unsigned int l3proto)
{}

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

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

static struct xt_match xt_ipvs_mt_reg __read_mostly =;

static int __init ipvs_mt_init(void)
{}

static void __exit ipvs_mt_exit(void)
{}

module_init();
module_exit(ipvs_mt_exit);