diff options
author | Harald Welte <laforge@gnumonks.org> | 2002-03-14 12:22:06 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2002-03-14 12:22:06 +0000 |
commit | 487d1d39b6457a4a3aeb2b9dac3b1925a003a3e1 (patch) | |
tree | ab752ec2748cb53766aa36d06829a7a2ba50194e /include | |
parent | b77f1dafb9f35752bb9685323bcacb32a0e6ddc5 (diff) |
add DSCP match
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter_ipv4/ipt_DSCP.h | 23 | ||||
-rw-r--r-- | include/linux/netfilter_ipv4/ipt_dscp.h | 23 |
2 files changed, 33 insertions, 13 deletions
diff --git a/include/linux/netfilter_ipv4/ipt_DSCP.h b/include/linux/netfilter_ipv4/ipt_DSCP.h index 361eb2af..499fca49 100644 --- a/include/linux/netfilter_ipv4/ipt_DSCP.h +++ b/include/linux/netfilter_ipv4/ipt_DSCP.h @@ -1,23 +1,20 @@ -/* Set DSCP field - * - * (C) 2000-2002 by Matthew G. Marsh <mgm@paktronix.com> - * Harald Welte <laforge@gnumonks.org> +/* iptables module for setting the IPv4 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 * - * ipt_DSCP.h borrowed heavily from ipt_TOS.h 11/09/2000 + * See RFC2474 for a description of the DSCP field within the IP Header. * - * $Id: ipt_DSCP.h,v 1.3 2002/02/17 19:56:28 laforge Exp $ + * Id: ipt_DSCP.h,v 1.7 2002/03/14 12:03:13 laforge Exp */ -#ifndef _IPT_DSCP_H -#define _IPT_DSCP_H - -#define IPT_DSCP_MASK 0xf4 /* 11111100 */ -#define IPT_DSCP_SHIFT 2 /* shift DSCP two bits for ECN */ -#define IPT_DSCP_MAX 0x3f /* 00111111 */ +#ifndef _IPT_DSCP_TARGET_H +#define _IPT_DSCP_TARGET_H +#include <linux/netfilter_ipv4/ipt_dscp.h> +/* target info */ struct ipt_DSCP_info { u_int8_t dscp; }; -#endif /* _IPT_DSCP_H */ +#endif /* _IPT_DSCP_TARGET_H */ diff --git a/include/linux/netfilter_ipv4/ipt_dscp.h b/include/linux/netfilter_ipv4/ipt_dscp.h new file mode 100644 index 00000000..1d728753 --- /dev/null +++ b/include/linux/netfilter_ipv4/ipt_dscp.h @@ -0,0 +1,23 @@ +/* iptables module for matching the IPv4 DSCP field + * + * (C) 2002 Harald Welte <laforge@gnumonks.org> + * This software is distributed under GNU GPL v2, 1991 + * + * See RFC2474 for a description of the DSCP field within the IP Header. + * + * Id: ipt_dscp.h,v 1.1 2002/03/14 12:03:13 laforge Exp +*/ +#ifndef _IPT_DSCP_H +#define _IPT_DSCP_H + +#define IPT_DSCP_MASK 0xfc /* 11111100 */ +#define IPT_DSCP_SHIFT 2 /* shift DSCP two bits for ECN */ +#define IPT_DSCP_MAX 0x3f /* 00111111 */ + +/* match info */ +struct ipt_dscp_info { + u_int8_t dscp; + u_int8_t invert; +}; + +#endif /* _IPT_DSCP_H */ |