linux/net/netfilter/xt_multiport.c

// SPDX-License-Identifier: GPL-2.0-only
/* Kernel module to match one of a list of TCP/UDP(-Lite)/SCTP/DCCP ports:
   ports are in the same place so we can treat them as equal. */

/* (C) 1999-2001 Paul `Rusty' Russell
 * (C) 2002-2004 Netfilter Core Team <[email protected]>
 */
#define pr_fmt(fmt)
#include <linux/module.h>
#include <linux/types.h>
#include <linux/udp.h>
#include <linux/skbuff.h>
#include <linux/in.h>

#include <linux/netfilter/xt_multiport.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv6/ip6_tables.h>

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

/* Returns 1 if the port is matched by the test, 0 otherwise. */
static inline bool
ports_match_v1(const struct xt_multiport_v1 *minfo,
	       u_int16_t src, u_int16_t dst)
{}

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

static inline bool
check(u_int16_t proto,
      u_int8_t ip_invflags,
      u_int8_t match_flags,
      u_int8_t count)
{}

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

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

static struct xt_match multiport_mt_reg[] __read_mostly =;

static int __init multiport_mt_init(void)
{}

static void __exit multiport_mt_exit(void)
{}

module_init();
module_exit(multiport_mt_exit);