linux/net/netfilter/xt_DSCP.c

// SPDX-License-Identifier: GPL-2.0-only
/* x_tables module for setting the IPv4/IPv6 DSCP field, Version 1.8
 *
 * (C) 2002 by Harald Welte <[email protected]>
 * based on ipt_FTOS.c (C) 2000 by Matthew G. Marsh <[email protected]>
 *
 * See RFC2474 for a description of the DSCP field within the IP Header.
*/
#define pr_fmt(fmt)
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <net/dsfield.h>

#include <linux/netfilter/x_tables.h>
#include <linux/netfilter/xt_DSCP.h>

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

#define XT_DSCP_ECN_MASK

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

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

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

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

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

static struct xt_target dscp_tg_reg[] __read_mostly =;

static int __init dscp_tg_init(void)
{}

static void __exit dscp_tg_exit(void)
{}

module_init();
module_exit(dscp_tg_exit);