5c350e5a38
Extends the xt_DSCP target by xt_TOS v1 to add support for selectively setting and flipping any bit in the IPv4 TOS and IPv6 Priority fields. (ipt_TOS and xt_DSCP only accepted a limited range of possible values.) Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
26 lines
621 B
C
26 lines
621 B
C
/* x_tables module for setting the IPv4/IPv6 DSCP field
|
|
*
|
|
* (C) 2002 Harald Welte <laforge@gnumonks.org>
|
|
* based on ipt_FTOS.c (C) 2000 by Matthew G. Marsh <mgm@paktronix.com>
|
|
* This software is distributed under GNU GPL v2, 1991
|
|
*
|
|
* See RFC2474 for a description of the DSCP field within the IP Header.
|
|
*
|
|
* xt_DSCP.h,v 1.7 2002/03/14 12:03:13 laforge Exp
|
|
*/
|
|
#ifndef _XT_DSCP_TARGET_H
|
|
#define _XT_DSCP_TARGET_H
|
|
#include <linux/netfilter/xt_dscp.h>
|
|
|
|
/* target info */
|
|
struct xt_DSCP_info {
|
|
u_int8_t dscp;
|
|
};
|
|
|
|
struct xt_tos_target_info {
|
|
u_int8_t tos_value;
|
|
u_int8_t tos_mask;
|
|
};
|
|
|
|
#endif /* _XT_DSCP_TARGET_H */
|