]> git.pld-linux.org Git - packages/kernel.git/blob - linux-2.4.18-iptables.fix.patch
- fixed for PLD
[packages/kernel.git] / linux-2.4.18-iptables.fix.patch
1 diff -Nur include/linux/netfilter_ipv4.org/ipt_DSCP.h include/linux/netfilter_ipv4/ipt_DSCP.h
2 --- include/linux/netfilter_ipv4.org/ipt_DSCP.h Thu Jan  1 01:00:00 1970
3 +++ include/linux/netfilter_ipv4/ipt_DSCP.h     Thu Mar 14 13:14:44 2002
4 @@ -0,0 +1,20 @@
5 +/* iptables module for setting the IPv4 DSCP field
6 + *
7 + * (C) 2002 Harald Welte <laforge@gnumonks.org>
8 + * based on ipt_FTOS.c (C) 2000 by Matthew G. Marsh <mgm@paktronix.com>
9 + * This software is distributed under GNU GPL v2, 1991
10 + * 
11 + * See RFC2474 for a description of the DSCP field within the IP Header.
12 + *
13 + * Id: ipt_DSCP.h,v 1.7 2002/03/14 12:03:13 laforge Exp 
14 +*/
15 +#ifndef _IPT_DSCP_TARGET_H
16 +#define _IPT_DSCP_TARGET_H
17 +#include <linux/netfilter_ipv4/ipt_dscp.h>
18 +
19 +/* target info */
20 +struct ipt_DSCP_info {
21 +       u_int8_t dscp;
22 +};
23 +
24 +#endif /* _IPT_DSCP_TARGET_H */
25 diff -Nur include/linux/netfilter_ipv4.org/ipt_ECN.h include/linux/netfilter_ipv4/ipt_ECN.h
26 --- include/linux/netfilter_ipv4.org/ipt_ECN.h  Thu Jan  1 01:00:00 1970
27 +++ include/linux/netfilter_ipv4/ipt_ECN.h      Sun Feb 17 22:26:49 2002
28 @@ -0,0 +1,25 @@
29 +/* Header file for iptables ipt_ECN target
30 + *
31 + * (C) 2002 by Harald Welte <laforge@gnumonks.org>
32 + *
33 + * This software is distributed under GNU GPL v2, 1991
34 + * 
35 + * ipt_ECN.h,v 1.1 2002/02/17 21:30:16 laforge Exp
36 +*/
37 +#ifndef _IPT_DSCP_H
38 +#define _IPT_DSCP_H
39 +#include <linux/netfilter_ipv4/ipt_DSCP.h>
40 +
41 +#define IPT_ECN_MASK   (~IPT_DSCP_MASK)
42 +
43 +enum ipt_ecn_operation {
44 +       IPT_ECN_OP_NONE = 0,
45 +       IPT_ECN_OP_REMOVE,
46 +};
47 +#define IPT_ECN_OP_MAX IPT_ECN_OP_REMOVE
48 +
49 +struct ipt_ECN_info {
50 +       enum ipt_ecn_operation operation;
51 +};
52 +
53 +#endif /* _IPT_ECN_H */
54 diff -Nur include/linux/netfilter_ipv4.org/ipt_dscp.h include/linux/netfilter_ipv4/ipt_dscp.h
55 --- include/linux/netfilter_ipv4.org/ipt_dscp.h Thu Jan  1 01:00:00 1970
56 +++ include/linux/netfilter_ipv4/ipt_dscp.h     Thu Mar 14 13:14:56 2002
57 @@ -0,0 +1,23 @@
58 +/* iptables module for matching the IPv4 DSCP field
59 + *
60 + * (C) 2002 Harald Welte <laforge@gnumonks.org>
61 + * This software is distributed under GNU GPL v2, 1991
62 + * 
63 + * See RFC2474 for a description of the DSCP field within the IP Header.
64 + *
65 + * Id: ipt_dscp.h,v 1.1 2002/03/14 12:03:13 laforge Exp 
66 +*/
67 +#ifndef _IPT_DSCP_H
68 +#define _IPT_DSCP_H
69 +
70 +#define IPT_DSCP_MASK  0xfc    /* 11111100 */
71 +#define IPT_DSCP_SHIFT 2       /* shift DSCP two bits for ECN */
72 +#define IPT_DSCP_MAX   0x3f    /* 00111111 */
73 +
74 +/* match info */
75 +struct ipt_dscp_info {
76 +       u_int8_t dscp;
77 +       u_int8_t invert;
78 +};
79 +
80 +#endif /* _IPT_DSCP_H */
This page took 0.025079 seconds and 3 git commands to generate.