diff options
author | Patrick McHardy <kaber@trash.net> | 2006-03-20 21:02:56 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 21:02:56 -0500 |
commit | c49867347404c46f137a261643ed4fce4376f324 (patch) | |
tree | 0b561e2eae19b0073435a4a73df671eae878c30a /net/ipv6 | |
parent | 1c524830d0b39472f0278989bf1119750a5e234d (diff) |
[NETFILTER]: x_tables: add xt_{match,target} arguments to match/target functions
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6_tables.c | 3 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_HL.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_LOG.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_REJECT.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_ah.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_dst.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_esp.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_eui64.c | 1 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_frag.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_hbh.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_hl.c | 8 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_ipv6header.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_multiport.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_owner.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_policy.c | 5 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6t_rt.c | 2 |
16 files changed, 35 insertions, 6 deletions
diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c index 1b32a2d1e9e0..b75f8fdc3afe 100644 --- a/net/ipv6/netfilter/ip6_tables.c +++ b/net/ipv6/netfilter/ip6_tables.c | |||
@@ -232,6 +232,7 @@ ip6t_error(struct sk_buff **pskb, | |||
232 | const struct net_device *in, | 232 | const struct net_device *in, |
233 | const struct net_device *out, | 233 | const struct net_device *out, |
234 | unsigned int hooknum, | 234 | unsigned int hooknum, |
235 | const struct xt_target *target, | ||
235 | const void *targinfo, | 236 | const void *targinfo, |
236 | void *userinfo) | 237 | void *userinfo) |
237 | { | 238 | { |
@@ -1341,6 +1342,7 @@ static int | |||
1341 | icmp6_match(const struct sk_buff *skb, | 1342 | icmp6_match(const struct sk_buff *skb, |
1342 | const struct net_device *in, | 1343 | const struct net_device *in, |
1343 | const struct net_device *out, | 1344 | const struct net_device *out, |
1345 | const struct xt_match *match, | ||
1344 | const void *matchinfo, | 1346 | const void *matchinfo, |
1345 | int offset, | 1347 | int offset, |
1346 | unsigned int protoff, | 1348 | unsigned int protoff, |
@@ -1373,6 +1375,7 @@ icmp6_match(const struct sk_buff *skb, | |||
1373 | static int | 1375 | static int |
1374 | icmp6_checkentry(const char *tablename, | 1376 | icmp6_checkentry(const char *tablename, |
1375 | const void *entry, | 1377 | const void *entry, |
1378 | const struct xt_match *match, | ||
1376 | void *matchinfo, | 1379 | void *matchinfo, |
1377 | unsigned int matchsize, | 1380 | unsigned int matchsize, |
1378 | unsigned int hook_mask) | 1381 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_HL.c b/net/ipv6/netfilter/ip6t_HL.c index ab39ee90418e..da14c6d86bcc 100644 --- a/net/ipv6/netfilter/ip6t_HL.c +++ b/net/ipv6/netfilter/ip6t_HL.c | |||
@@ -21,6 +21,7 @@ static unsigned int ip6t_hl_target(struct sk_buff **pskb, | |||
21 | const struct net_device *in, | 21 | const struct net_device *in, |
22 | const struct net_device *out, | 22 | const struct net_device *out, |
23 | unsigned int hooknum, | 23 | unsigned int hooknum, |
24 | const struct xt_target *target, | ||
24 | const void *targinfo, void *userinfo) | 25 | const void *targinfo, void *userinfo) |
25 | { | 26 | { |
26 | struct ipv6hdr *ip6h; | 27 | struct ipv6hdr *ip6h; |
@@ -63,6 +64,7 @@ static unsigned int ip6t_hl_target(struct sk_buff **pskb, | |||
63 | 64 | ||
64 | static int ip6t_hl_checkentry(const char *tablename, | 65 | static int ip6t_hl_checkentry(const char *tablename, |
65 | const void *entry, | 66 | const void *entry, |
67 | const struct xt_target *target, | ||
66 | void *targinfo, | 68 | void *targinfo, |
67 | unsigned int targinfosize, | 69 | unsigned int targinfosize, |
68 | unsigned int hook_mask) | 70 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_LOG.c b/net/ipv6/netfilter/ip6t_LOG.c index 6a3a2da5f2b4..07c6bcbe4c5f 100644 --- a/net/ipv6/netfilter/ip6t_LOG.c +++ b/net/ipv6/netfilter/ip6t_LOG.c | |||
@@ -426,6 +426,7 @@ ip6t_log_target(struct sk_buff **pskb, | |||
426 | const struct net_device *in, | 426 | const struct net_device *in, |
427 | const struct net_device *out, | 427 | const struct net_device *out, |
428 | unsigned int hooknum, | 428 | unsigned int hooknum, |
429 | const struct xt_target *target, | ||
429 | const void *targinfo, | 430 | const void *targinfo, |
430 | void *userinfo) | 431 | void *userinfo) |
431 | { | 432 | { |
@@ -449,6 +450,7 @@ ip6t_log_target(struct sk_buff **pskb, | |||
449 | 450 | ||
450 | static int ip6t_log_checkentry(const char *tablename, | 451 | static int ip6t_log_checkentry(const char *tablename, |
451 | const void *entry, | 452 | const void *entry, |
453 | const struct xt_target *target, | ||
452 | void *targinfo, | 454 | void *targinfo, |
453 | unsigned int targinfosize, | 455 | unsigned int targinfosize, |
454 | unsigned int hook_mask) | 456 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_REJECT.c b/net/ipv6/netfilter/ip6t_REJECT.c index 86407060f6da..ddfa38575fe2 100644 --- a/net/ipv6/netfilter/ip6t_REJECT.c +++ b/net/ipv6/netfilter/ip6t_REJECT.c | |||
@@ -179,6 +179,7 @@ static unsigned int reject6_target(struct sk_buff **pskb, | |||
179 | const struct net_device *in, | 179 | const struct net_device *in, |
180 | const struct net_device *out, | 180 | const struct net_device *out, |
181 | unsigned int hooknum, | 181 | unsigned int hooknum, |
182 | const struct xt_target *target, | ||
182 | const void *targinfo, | 183 | const void *targinfo, |
183 | void *userinfo) | 184 | void *userinfo) |
184 | { | 185 | { |
@@ -221,6 +222,7 @@ static unsigned int reject6_target(struct sk_buff **pskb, | |||
221 | 222 | ||
222 | static int check(const char *tablename, | 223 | static int check(const char *tablename, |
223 | const void *entry, | 224 | const void *entry, |
225 | const struct xt_target *target, | ||
224 | void *targinfo, | 226 | void *targinfo, |
225 | unsigned int targinfosize, | 227 | unsigned int targinfosize, |
226 | unsigned int hook_mask) | 228 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_ah.c b/net/ipv6/netfilter/ip6t_ah.c index 28710edcff4e..178f6fb1e53d 100644 --- a/net/ipv6/netfilter/ip6t_ah.c +++ b/net/ipv6/netfilter/ip6t_ah.c | |||
@@ -44,6 +44,7 @@ static int | |||
44 | match(const struct sk_buff *skb, | 44 | match(const struct sk_buff *skb, |
45 | const struct net_device *in, | 45 | const struct net_device *in, |
46 | const struct net_device *out, | 46 | const struct net_device *out, |
47 | const struct xt_match *match, | ||
47 | const void *matchinfo, | 48 | const void *matchinfo, |
48 | int offset, | 49 | int offset, |
49 | unsigned int protoff, | 50 | unsigned int protoff, |
@@ -99,6 +100,7 @@ match(const struct sk_buff *skb, | |||
99 | static int | 100 | static int |
100 | checkentry(const char *tablename, | 101 | checkentry(const char *tablename, |
101 | const void *entry, | 102 | const void *entry, |
103 | const struct xt_match *match, | ||
102 | void *matchinfo, | 104 | void *matchinfo, |
103 | unsigned int matchinfosize, | 105 | unsigned int matchinfosize, |
104 | unsigned int hook_mask) | 106 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_dst.c b/net/ipv6/netfilter/ip6t_dst.c index 2fbde5944e00..e97a70226987 100644 --- a/net/ipv6/netfilter/ip6t_dst.c +++ b/net/ipv6/netfilter/ip6t_dst.c | |||
@@ -55,6 +55,7 @@ static int | |||
55 | match(const struct sk_buff *skb, | 55 | match(const struct sk_buff *skb, |
56 | const struct net_device *in, | 56 | const struct net_device *in, |
57 | const struct net_device *out, | 57 | const struct net_device *out, |
58 | const struct xt_match *match, | ||
58 | const void *matchinfo, | 59 | const void *matchinfo, |
59 | int offset, | 60 | int offset, |
60 | unsigned int protoff, | 61 | unsigned int protoff, |
@@ -179,6 +180,7 @@ match(const struct sk_buff *skb, | |||
179 | static int | 180 | static int |
180 | checkentry(const char *tablename, | 181 | checkentry(const char *tablename, |
181 | const void *info, | 182 | const void *info, |
183 | const struct xt_match *match, | ||
182 | void *matchinfo, | 184 | void *matchinfo, |
183 | unsigned int matchinfosize, | 185 | unsigned int matchinfosize, |
184 | unsigned int hook_mask) | 186 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_esp.c b/net/ipv6/netfilter/ip6t_esp.c index ede722328c3d..540b8bfd5055 100644 --- a/net/ipv6/netfilter/ip6t_esp.c +++ b/net/ipv6/netfilter/ip6t_esp.c | |||
@@ -44,6 +44,7 @@ static int | |||
44 | match(const struct sk_buff *skb, | 44 | match(const struct sk_buff *skb, |
45 | const struct net_device *in, | 45 | const struct net_device *in, |
46 | const struct net_device *out, | 46 | const struct net_device *out, |
47 | const struct xt_match *match, | ||
47 | const void *matchinfo, | 48 | const void *matchinfo, |
48 | int offset, | 49 | int offset, |
49 | unsigned int protoff, | 50 | unsigned int protoff, |
@@ -77,6 +78,7 @@ match(const struct sk_buff *skb, | |||
77 | static int | 78 | static int |
78 | checkentry(const char *tablename, | 79 | checkentry(const char *tablename, |
79 | const void *ip, | 80 | const void *ip, |
81 | const struct xt_match *match, | ||
80 | void *matchinfo, | 82 | void *matchinfo, |
81 | unsigned int matchinfosize, | 83 | unsigned int matchinfosize, |
82 | unsigned int hook_mask) | 84 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_eui64.c b/net/ipv6/netfilter/ip6t_eui64.c index bfee5be7e57b..d4b0bad52830 100644 --- a/net/ipv6/netfilter/ip6t_eui64.c +++ b/net/ipv6/netfilter/ip6t_eui64.c | |||
@@ -22,6 +22,7 @@ static int | |||
22 | match(const struct sk_buff *skb, | 22 | match(const struct sk_buff *skb, |
23 | const struct net_device *in, | 23 | const struct net_device *in, |
24 | const struct net_device *out, | 24 | const struct net_device *out, |
25 | const struct xt_match *match, | ||
25 | const void *matchinfo, | 26 | const void *matchinfo, |
26 | int offset, | 27 | int offset, |
27 | unsigned int protoff, | 28 | unsigned int protoff, |
diff --git a/net/ipv6/netfilter/ip6t_frag.c b/net/ipv6/netfilter/ip6t_frag.c index 305de9bc6731..4c41e14823d5 100644 --- a/net/ipv6/netfilter/ip6t_frag.c +++ b/net/ipv6/netfilter/ip6t_frag.c | |||
@@ -43,6 +43,7 @@ static int | |||
43 | match(const struct sk_buff *skb, | 43 | match(const struct sk_buff *skb, |
44 | const struct net_device *in, | 44 | const struct net_device *in, |
45 | const struct net_device *out, | 45 | const struct net_device *out, |
46 | const struct xt_match *match, | ||
46 | const void *matchinfo, | 47 | const void *matchinfo, |
47 | int offset, | 48 | int offset, |
48 | unsigned int protoff, | 49 | unsigned int protoff, |
@@ -116,6 +117,7 @@ match(const struct sk_buff *skb, | |||
116 | static int | 117 | static int |
117 | checkentry(const char *tablename, | 118 | checkentry(const char *tablename, |
118 | const void *ip, | 119 | const void *ip, |
120 | const struct xt_match *match, | ||
119 | void *matchinfo, | 121 | void *matchinfo, |
120 | unsigned int matchinfosize, | 122 | unsigned int matchinfosize, |
121 | unsigned int hook_mask) | 123 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_hbh.c b/net/ipv6/netfilter/ip6t_hbh.c index ac8d4791bc2a..b4a1fdfe6abc 100644 --- a/net/ipv6/netfilter/ip6t_hbh.c +++ b/net/ipv6/netfilter/ip6t_hbh.c | |||
@@ -55,6 +55,7 @@ static int | |||
55 | match(const struct sk_buff *skb, | 55 | match(const struct sk_buff *skb, |
56 | const struct net_device *in, | 56 | const struct net_device *in, |
57 | const struct net_device *out, | 57 | const struct net_device *out, |
58 | const struct xt_match *match, | ||
58 | const void *matchinfo, | 59 | const void *matchinfo, |
59 | int offset, | 60 | int offset, |
60 | unsigned int protoff, | 61 | unsigned int protoff, |
@@ -179,6 +180,7 @@ match(const struct sk_buff *skb, | |||
179 | static int | 180 | static int |
180 | checkentry(const char *tablename, | 181 | checkentry(const char *tablename, |
181 | const void *entry, | 182 | const void *entry, |
183 | const struct xt_match *match, | ||
182 | void *matchinfo, | 184 | void *matchinfo, |
183 | unsigned int matchinfosize, | 185 | unsigned int matchinfosize, |
184 | unsigned int hook_mask) | 186 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_hl.c b/net/ipv6/netfilter/ip6t_hl.c index 1eabb6507300..374055733b26 100644 --- a/net/ipv6/netfilter/ip6t_hl.c +++ b/net/ipv6/netfilter/ip6t_hl.c | |||
@@ -18,10 +18,10 @@ MODULE_AUTHOR("Maciej Soltysiak <solt@dns.toxicfilms.tv>"); | |||
18 | MODULE_DESCRIPTION("IP tables Hop Limit matching module"); | 18 | MODULE_DESCRIPTION("IP tables Hop Limit matching module"); |
19 | MODULE_LICENSE("GPL"); | 19 | MODULE_LICENSE("GPL"); |
20 | 20 | ||
21 | static int match(const struct sk_buff *skb, const struct net_device *in, | 21 | static int match(const struct sk_buff *skb, |
22 | const struct net_device *out, const void *matchinfo, | 22 | const struct net_device *in, const struct net_device *out, |
23 | int offset, unsigned int protoff, | 23 | const struct xt_match *match, const void *matchinfo, |
24 | int *hotdrop) | 24 | int offset, unsigned int protoff, int *hotdrop) |
25 | { | 25 | { |
26 | const struct ip6t_hl_info *info = matchinfo; | 26 | const struct ip6t_hl_info *info = matchinfo; |
27 | const struct ipv6hdr *ip6h = skb->nh.ipv6h; | 27 | const struct ipv6hdr *ip6h = skb->nh.ipv6h; |
diff --git a/net/ipv6/netfilter/ip6t_ipv6header.c b/net/ipv6/netfilter/ip6t_ipv6header.c index 063032a214c7..9375eeb1369f 100644 --- a/net/ipv6/netfilter/ip6t_ipv6header.c +++ b/net/ipv6/netfilter/ip6t_ipv6header.c | |||
@@ -29,6 +29,7 @@ static int | |||
29 | ipv6header_match(const struct sk_buff *skb, | 29 | ipv6header_match(const struct sk_buff *skb, |
30 | const struct net_device *in, | 30 | const struct net_device *in, |
31 | const struct net_device *out, | 31 | const struct net_device *out, |
32 | const struct xt_match *match, | ||
32 | const void *matchinfo, | 33 | const void *matchinfo, |
33 | int offset, | 34 | int offset, |
34 | unsigned int protoff, | 35 | unsigned int protoff, |
@@ -125,6 +126,7 @@ ipv6header_match(const struct sk_buff *skb, | |||
125 | static int | 126 | static int |
126 | ipv6header_checkentry(const char *tablename, | 127 | ipv6header_checkentry(const char *tablename, |
127 | const void *ip, | 128 | const void *ip, |
129 | const struct xt_match *match, | ||
128 | void *matchinfo, | 130 | void *matchinfo, |
129 | unsigned int matchsize, | 131 | unsigned int matchsize, |
130 | unsigned int hook_mask) | 132 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_multiport.c b/net/ipv6/netfilter/ip6t_multiport.c index b86774daf170..752b65d21c72 100644 --- a/net/ipv6/netfilter/ip6t_multiport.c +++ b/net/ipv6/netfilter/ip6t_multiport.c | |||
@@ -51,6 +51,7 @@ static int | |||
51 | match(const struct sk_buff *skb, | 51 | match(const struct sk_buff *skb, |
52 | const struct net_device *in, | 52 | const struct net_device *in, |
53 | const struct net_device *out, | 53 | const struct net_device *out, |
54 | const struct xt_match *match, | ||
54 | const void *matchinfo, | 55 | const void *matchinfo, |
55 | int offset, | 56 | int offset, |
56 | unsigned int protoff, | 57 | unsigned int protoff, |
@@ -85,6 +86,7 @@ match(const struct sk_buff *skb, | |||
85 | static int | 86 | static int |
86 | checkentry(const char *tablename, | 87 | checkentry(const char *tablename, |
87 | const void *info, | 88 | const void *info, |
89 | const struct xt_match *match, | ||
88 | void *matchinfo, | 90 | void *matchinfo, |
89 | unsigned int matchsize, | 91 | unsigned int matchsize, |
90 | unsigned int hook_mask) | 92 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_owner.c b/net/ipv6/netfilter/ip6t_owner.c index e26cd6da0420..e2cee3bcdef9 100644 --- a/net/ipv6/netfilter/ip6t_owner.c +++ b/net/ipv6/netfilter/ip6t_owner.c | |||
@@ -26,6 +26,7 @@ static int | |||
26 | match(const struct sk_buff *skb, | 26 | match(const struct sk_buff *skb, |
27 | const struct net_device *in, | 27 | const struct net_device *in, |
28 | const struct net_device *out, | 28 | const struct net_device *out, |
29 | const struct xt_match *match, | ||
29 | const void *matchinfo, | 30 | const void *matchinfo, |
30 | int offset, | 31 | int offset, |
31 | unsigned int protoff, | 32 | unsigned int protoff, |
@@ -54,6 +55,7 @@ match(const struct sk_buff *skb, | |||
54 | static int | 55 | static int |
55 | checkentry(const char *tablename, | 56 | checkentry(const char *tablename, |
56 | const void *ip, | 57 | const void *ip, |
58 | const struct xt_match *match, | ||
57 | void *matchinfo, | 59 | void *matchinfo, |
58 | unsigned int matchsize, | 60 | unsigned int matchsize, |
59 | unsigned int hook_mask) | 61 | unsigned int hook_mask) |
diff --git a/net/ipv6/netfilter/ip6t_policy.c b/net/ipv6/netfilter/ip6t_policy.c index ac8a5447aa85..b2f30072ca6e 100644 --- a/net/ipv6/netfilter/ip6t_policy.c +++ b/net/ipv6/netfilter/ip6t_policy.c | |||
@@ -98,6 +98,7 @@ match_policy_out(const struct sk_buff *skb, const struct ip6t_policy_info *info) | |||
98 | static int match(const struct sk_buff *skb, | 98 | static int match(const struct sk_buff *skb, |
99 | const struct net_device *in, | 99 | const struct net_device *in, |
100 | const struct net_device *out, | 100 | const struct net_device *out, |
101 | const struct xt_match *match, | ||
101 | const void *matchinfo, | 102 | const void *matchinfo, |
102 | int offset, | 103 | int offset, |
103 | unsigned int protoff, | 104 | unsigned int protoff, |
@@ -120,8 +121,8 @@ static int match(const struct sk_buff *skb, | |||
120 | } | 121 | } |
121 | 122 | ||
122 | static int checkentry(const char *tablename, const void *ip_void, | 123 | static int checkentry(const char *tablename, const void *ip_void, |
123 | void *matchinfo, unsigned int matchsize, | 124 | const struct xt_match *match, void *matchinfo, |
124 | unsigned int hook_mask) | 125 | unsigned int matchsize, unsigned int hook_mask) |
125 | { | 126 | { |
126 | struct ip6t_policy_info *info = matchinfo; | 127 | struct ip6t_policy_info *info = matchinfo; |
127 | 128 | ||
diff --git a/net/ipv6/netfilter/ip6t_rt.c b/net/ipv6/netfilter/ip6t_rt.c index a3810748f547..4c6b55bb225b 100644 --- a/net/ipv6/netfilter/ip6t_rt.c +++ b/net/ipv6/netfilter/ip6t_rt.c | |||
@@ -45,6 +45,7 @@ static int | |||
45 | match(const struct sk_buff *skb, | 45 | match(const struct sk_buff *skb, |
46 | const struct net_device *in, | 46 | const struct net_device *in, |
47 | const struct net_device *out, | 47 | const struct net_device *out, |
48 | const struct xt_match *match, | ||
48 | const void *matchinfo, | 49 | const void *matchinfo, |
49 | int offset, | 50 | int offset, |
50 | unsigned int protoff, | 51 | unsigned int protoff, |
@@ -194,6 +195,7 @@ match(const struct sk_buff *skb, | |||
194 | static int | 195 | static int |
195 | checkentry(const char *tablename, | 196 | checkentry(const char *tablename, |
196 | const void *entry, | 197 | const void *entry, |
198 | const struct xt_match *match, | ||
197 | void *matchinfo, | 199 | void *matchinfo, |
198 | unsigned int matchinfosize, | 200 | unsigned int matchinfosize, |
199 | unsigned int hook_mask) | 201 | unsigned int hook_mask) |