]> git.pld-linux.org Git - packages/kernel.git/blame - 2.6.7-pom-ng-20040629.patch
- ported from linux-2.4.25-atmdd.patch
[packages/kernel.git] / 2.6.7-pom-ng-20040629.patch
CommitLineData
c9d1c54c
AM
1--- linux-2.6.9-rc1/include/linux/netfilter_ipv4/ip_conntrack.h.orig 2004-08-29 16:44:31.000000000 +0200
2+++ linux-2.6.9-rc1/include/linux/netfilter_ipv4/ip_conntrack.h 2004-08-29 19:58:04.869439888 +0200
3@@ -220,6 +220,10 @@
c9869c03 4 } nat;
5 #endif /* CONFIG_IP_NF_NAT_NEEDED */
6
7+#if defined(CONFIG_IP_NF_CONNTRACK_MARK)
8+ unsigned long mark;
9+#endif
10+
11 };
12
13 /* get master conntrack via master expectation */
c9869c03 14diff -Nur --exclude '*.orig' linux-2.6.7.org/include/linux/netfilter_ipv4/ip_queue.h linux-2.6.7/include/linux/netfilter_ipv4/ip_queue.h
15--- linux-2.6.7.org/include/linux/netfilter_ipv4/ip_queue.h 2004-06-16 07:20:03.000000000 +0200
16+++ linux-2.6.7/include/linux/netfilter_ipv4/ip_queue.h 2004-06-29 12:35:08.141268712 +0200
17@@ -47,10 +47,20 @@
18 unsigned char payload[0]; /* Optional replacement packet */
19 } ipq_verdict_msg_t;
20
21+typedef struct ipq_vwmark_msg {
22+ unsigned int value; /* Verdict to hand to netfilter */
23+ unsigned long id; /* Packet ID for this verdict */
24+ size_t data_len; /* Length of replacement data */
25+ unsigned char payload[0]; /* Optional replacement packet */
26+ unsigned long nfmark; /* Mark for the Packet */
27+} ipq_vwmark_msg_t;
28+
29+
30 typedef struct ipq_peer_msg {
31 union {
32 ipq_verdict_msg_t verdict;
33 ipq_mode_msg_t mode;
34+ ipq_vwmark_msg_t vwmark;
35 } msg;
36 } ipq_peer_msg_t;
37
38@@ -67,6 +77,7 @@
39 #define IPQM_MODE (IPQM_BASE + 1) /* Mode request from peer */
40 #define IPQM_VERDICT (IPQM_BASE + 2) /* Verdict from peer */
41 #define IPQM_PACKET (IPQM_BASE + 3) /* Packet from kernel */
42-#define IPQM_MAX (IPQM_BASE + 4)
43+#define IPQM_VWMARK (IPQM_BASE + 4) /* Verdict and mark from peer */
44+#define IPQM_MAX (IPQM_BASE + 5)
45
46 #endif /*_IP_QUEUE_H*/
47diff -Nur --exclude '*.orig' linux-2.6.7.org/include/linux/netfilter_ipv4/ipt_CONNMARK.h linux-2.6.7/include/linux/netfilter_ipv4/ipt_CONNMARK.h
48--- linux-2.6.7.org/include/linux/netfilter_ipv4/ipt_CONNMARK.h 1970-01-01 01:00:00.000000000 +0100
49+++ linux-2.6.7/include/linux/netfilter_ipv4/ipt_CONNMARK.h 2004-06-29 12:34:21.508357992 +0200
50@@ -0,0 +1,25 @@
51+#ifndef _IPT_CONNMARK_H_target
52+#define _IPT_CONNMARK_H_target
53+
54+/* Copyright (C) 2002,2004 MARA Systems AB <http://www.marasystems.com>
55+ * by Henrik Nordstrom <hno@marasystems.com>
56+ *
57+ * This program is free software; you can redistribute it and/or modify
58+ * it under the terms of the GNU General Public License as published by
59+ * the Free Software Foundation; either version 2 of the License, or
60+ * (at your option) any later version.
61+ */
62+
63+enum {
64+ IPT_CONNMARK_SET = 0,
65+ IPT_CONNMARK_SAVE,
66+ IPT_CONNMARK_RESTORE
67+};
68+
69+struct ipt_connmark_target_info {
70+ unsigned long mark;
71+ unsigned long mask;
72+ u_int8_t mode;
73+};
74+
75+#endif /*_IPT_CONNMARK_H_target*/
76diff -Nur --exclude '*.orig' linux-2.6.7.org/include/linux/netfilter_ipv4/ipt_IPMARK.h linux-2.6.7/include/linux/netfilter_ipv4/ipt_IPMARK.h
77--- linux-2.6.7.org/include/linux/netfilter_ipv4/ipt_IPMARK.h 1970-01-01 01:00:00.000000000 +0100
78+++ linux-2.6.7/include/linux/netfilter_ipv4/ipt_IPMARK.h 2004-06-29 12:34:27.607430792 +0200
79@@ -0,0 +1,13 @@
80+#ifndef _IPT_IPMARK_H_target
81+#define _IPT_IPMARK_H_target
82+
83+struct ipt_ipmark_target_info {
84+ unsigned long andmask;
85+ unsigned long ormask;
86+ unsigned int addr;
87+};
88+
89+#define IPT_IPMARK_SRC 0
90+#define IPT_IPMARK_DST 1
91+
92+#endif /*_IPT_IPMARK_H_target*/
93diff -Nur --exclude '*.orig' linux-2.6.7.org/include/linux/netfilter_ipv4/ipt_ROUTE.h linux-2.6.7/include/linux/netfilter_ipv4/ipt_ROUTE.h
94--- linux-2.6.7.org/include/linux/netfilter_ipv4/ipt_ROUTE.h 1970-01-01 01:00:00.000000000 +0100
95+++ linux-2.6.7/include/linux/netfilter_ipv4/ipt_ROUTE.h 2004-06-29 12:34:33.507533840 +0200
96@@ -0,0 +1,22 @@
97+/* Header file for iptables ipt_ROUTE target
98+ *
99