linux/net/netfilter/nf_conntrack_netbios_ns.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *      NetBIOS name service broadcast connection tracking helper
 *
 *      (c) 2005 Patrick McHardy <[email protected]>
 */
/*
 *      This helper tracks locally originating NetBIOS name service
 *      requests by issuing permanent expectations (valid until
 *      timing out) matching all reply connections from the
 *      destination network. The only NetBIOS specific thing is
 *      actually the port number.
 */
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/in.h>

#include <net/netfilter/nf_conntrack.h>
#include <net/netfilter/nf_conntrack_helper.h>
#include <net/netfilter/nf_conntrack_expect.h>

#define HELPER_NAME
#define NMBD_PORT

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

static unsigned int timeout __read_mostly =;
module_param(timeout, uint, 0400);
MODULE_PARM_DESC();

static struct nf_conntrack_expect_policy exp_policy =;

static int netbios_ns_help(struct sk_buff *skb, unsigned int protoff,
			   struct nf_conn *ct,
			   enum ip_conntrack_info ctinfo)
{}

static struct nf_conntrack_helper helper __read_mostly =;

static int __init nf_conntrack_netbios_ns_init(void)
{}

static void __exit nf_conntrack_netbios_ns_fini(void)
{}

module_init();
module_exit(nf_conntrack_netbios_ns_fini);