linux/net/ipv4/netfilter/ipt_ECN.c

// SPDX-License-Identifier: GPL-2.0-only
/* iptables module for the IPv4 and TCP ECN bits, Version 1.5
 *
 * (C) 2002 by Harald Welte <[email protected]>
*/
#define pr_fmt(fmt)
#include <linux/in.h>
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/ip.h>
#include <net/ip.h>
#include <linux/tcp.h>
#include <net/checksum.h>

#include <linux/netfilter/x_tables.h>
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv4/ipt_ECN.h>

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

/* set ECT codepoint from IP header.
 * 	return false if there was an error. */
static inline bool
set_ect_ip(struct sk_buff *skb, const struct ipt_ECN_info *einfo)
{}

/* Return false if there was an error. */
static inline bool
set_ect_tcp(struct sk_buff *skb, const struct ipt_ECN_info *einfo)
{}

static unsigned int
ecn_tg(struct sk_buff *skb, const struct xt_action_param *par)
{}

static int ecn_tg_check(const struct xt_tgchk_param *par)
{}

static struct xt_target ecn_tg_reg __read_mostly =;

static int __init ecn_tg_init(void)
{}

static void __exit ecn_tg_exit(void)
{}

module_init();
module_exit(ecn_tg_exit);