linux/net/netfilter/nf_conntrack_tftp.c

// SPDX-License-Identifier: GPL-2.0-only
/* (C) 2001-2002 Magnus Boden <[email protected]>
 * (C) 2006-2012 Patrick McHardy <[email protected]>
 */

#define pr_fmt(fmt)

#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/in.h>
#include <linux/udp.h>
#include <linux/netfilter.h>

#include <net/netfilter/nf_conntrack.h>
#include <net/netfilter/nf_conntrack_tuple.h>
#include <net/netfilter/nf_conntrack_expect.h>
#include <net/netfilter/nf_conntrack_ecache.h>
#include <net/netfilter/nf_conntrack_helper.h>
#include <linux/netfilter/nf_conntrack_tftp.h>

#define HELPER_NAME

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

#define MAX_PORTS
static unsigned short ports[MAX_PORTS];
static unsigned int ports_c;
module_param_array();
MODULE_PARM_DESC();

unsigned int (*nf_nat_tftp_hook)(struct sk_buff *skb,
				 enum ip_conntrack_info ctinfo,
				 struct nf_conntrack_expect *exp) __read_mostly;
EXPORT_SYMBOL_GPL();

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

static struct nf_conntrack_helper tftp[MAX_PORTS * 2] __read_mostly;

static const struct nf_conntrack_expect_policy tftp_exp_policy =;

static void __exit nf_conntrack_tftp_fini(void)
{}

static int __init nf_conntrack_tftp_init(void)
{}

module_init();
module_exit(nf_conntrack_tftp_fini);