aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-10-08 05:35:01 -0400
committerPatrick McHardy <kaber@trash.net>2008-10-08 05:35:01 -0400
commitee999d8b9573df1b547aacdc6d79f86eb79c25cd (patch)
tree83585a40918ad1ebad17f4a0cfbf5486c02c64d7 /net/ipv6
parent7e9c6eeb136a46dfd941852803b3a9dd78939b69 (diff)
netfilter: x_tables: use NFPROTO_* in extensions
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/netfilter/ip6t_HL.c2
-rw-r--r--net/ipv6/netfilter/ip6t_LOG.c7
-rw-r--r--net/ipv6/netfilter/ip6t_REJECT.c2
-rw-r--r--net/ipv6/netfilter/ip6t_ah.c2
-rw-r--r--net/ipv6/netfilter/ip6t_eui64.c2
-rw-r--r--net/ipv6/netfilter/ip6t_frag.c2
-rw-r--r--net/ipv6/netfilter/ip6t_hbh.c4
-rw-r--r--net/ipv6/netfilter/ip6t_hl.c2
-rw-r--r--net/ipv6/netfilter/ip6t_ipv6header.c2
-rw-r--r--net/ipv6/netfilter/ip6t_mh.c2
-rw-r--r--net/ipv6/netfilter/ip6t_rt.c2
11 files changed, 15 insertions, 14 deletions
diff --git a/net/ipv6/netfilter/ip6t_HL.c b/net/ipv6/netfilter/ip6t_HL.c
index d5f8fd5f29d3..7eebd3509166 100644
--- a/net/ipv6/netfilter/ip6t_HL.c
+++ b/net/ipv6/netfilter/ip6t_HL.c
@@ -78,7 +78,7 @@ hl_tg6_check(const char *tablename, const void *entry,
78 78
79static struct xt_target hl_tg6_reg __read_mostly = { 79static struct xt_target hl_tg6_reg __read_mostly = {
80 .name = "HL", 80 .name = "HL",
81 .family = AF_INET6, 81 .family = NFPROTO_IPV6,
82 .target = hl_tg6, 82 .target = hl_tg6,
83 .targetsize = sizeof(struct ip6t_HL_info), 83 .targetsize = sizeof(struct ip6t_HL_info),
84 .table = "mangle", 84 .table = "mangle",
diff --git a/net/ipv6/netfilter/ip6t_LOG.c b/net/ipv6/netfilter/ip6t_LOG.c
index 0716f8afa0bc..fd148f3d842f 100644
--- a/net/ipv6/netfilter/ip6t_LOG.c
+++ b/net/ipv6/netfilter/ip6t_LOG.c
@@ -449,7 +449,8 @@ log_tg6(struct sk_buff *skb, const struct net_device *in,
449 li.u.log.level = loginfo->level; 449 li.u.log.level = loginfo->level;
450 li.u.log.logflags = loginfo->logflags; 450 li.u.log.logflags = loginfo->logflags;
451 451
452 ip6t_log_packet(PF_INET6, hooknum, skb, in, out, &li, loginfo->prefix); 452 ip6t_log_packet(NFPROTO_IPV6, hooknum, skb, in, out,
453 &li, loginfo->prefix);
453 return XT_CONTINUE; 454 return XT_CONTINUE;
454} 455}
455 456
@@ -475,7 +476,7 @@ log_tg6_check(const char *tablename, const void *entry,
475 476
476static struct xt_target log_tg6_reg __read_mostly = { 477static struct xt_target log_tg6_reg __read_mostly = {
477 .name = "LOG", 478 .name = "LOG",
478 .family = AF_INET6, 479 .family = NFPROTO_IPV6,
479 .target = log_tg6, 480 .target = log_tg6,
480 .targetsize = sizeof(struct ip6t_log_info), 481 .targetsize = sizeof(struct ip6t_log_info),
481 .checkentry = log_tg6_check, 482 .checkentry = log_tg6_check,
@@ -495,7 +496,7 @@ static int __init log_tg6_init(void)
495 ret = xt_register_target(&log_tg6_reg); 496 ret = xt_register_target(&log_tg6_reg);
496 if (ret < 0) 497 if (ret < 0)
497 return ret; 498 return ret;
498 nf_log_register(PF_INET6, &ip6t_logger); 499 nf_log_register(NFPROTO_IPV6, &ip6t_logger);
499 return 0; 500 return 0;
500} 501}
501 502
diff --git a/net/ipv6/netfilter/ip6t_REJECT.c b/net/ipv6/netfilter/ip6t_REJECT.c
index 44c8d65a2431..672ad9ff3e27 100644
--- a/net/ipv6/netfilter/ip6t_REJECT.c
+++ b/net/ipv6/netfilter/ip6t_REJECT.c
@@ -237,7 +237,7 @@ reject_tg6_check(const char *tablename, const void *entry,
237 237
238static struct xt_target reject_tg6_reg __read_mostly = { 238static struct xt_target reject_tg6_reg __read_mostly = {
239 .name = "REJECT", 239 .name = "REJECT",
240 .family = AF_INET6, 240 .family = NFPROTO_IPV6,
241 .target = reject_tg6, 241 .target = reject_tg6,
242 .targetsize = sizeof(struct ip6t_reject_info), 242 .targetsize = sizeof(struct ip6t_reject_info),
243 .table = "filter", 243 .table = "filter",
diff --git a/net/ipv6/netfilter/ip6t_ah.c b/net/ipv6/netfilter/ip6t_ah.c
index 429629fd63b6..061f89beeb67 100644
--- a/net/ipv6/netfilter/ip6t_ah.c
+++ b/net/ipv6/netfilter/ip6t_ah.c
@@ -110,7 +110,7 @@ ah_mt6_check(const char *tablename, const void *entry,
110 110
111static struct xt_match ah_mt6_reg __read_mostly = { 111static struct xt_match ah_mt6_reg __read_mostly = {
112 .name = "ah", 112 .name = "ah",
113 .family = AF_INET6, 113 .family = NFPROTO_IPV6,
114 .match = ah_mt6, 114 .match = ah_mt6,
115 .matchsize = sizeof(struct ip6t_ah), 115 .matchsize = sizeof(struct ip6t_ah),
116 .checkentry = ah_mt6_check, 116 .checkentry = ah_mt6_check,
diff --git a/net/ipv6/netfilter/ip6t_eui64.c b/net/ipv6/netfilter/ip6t_eui64.c
index 8f331f12b2ec..ba38df1116f0 100644
--- a/net/ipv6/netfilter/ip6t_eui64.c
+++ b/net/ipv6/netfilter/ip6t_eui64.c
@@ -60,7 +60,7 @@ eui64_mt6(const struct sk_buff *skb, const struct net_device *in,
60 60
61static struct xt_match eui64_mt6_reg __read_mostly = { 61static struct xt_match eui64_mt6_reg __read_mostly = {
62 .name = "eui64", 62 .name = "eui64",
63 .family = AF_INET6, 63 .family = NFPROTO_IPV6,
64 .match = eui64_mt6, 64 .match = eui64_mt6,
65 .matchsize = sizeof(int), 65 .matchsize = sizeof(int),
66 .hooks = (1 << NF_INET_PRE_ROUTING) | (1 << NF_INET_LOCAL_IN) | 66 .hooks = (1 << NF_INET_PRE_ROUTING) | (1 << NF_INET_LOCAL_IN) |
diff --git a/net/ipv6/netfilter/ip6t_frag.c b/net/ipv6/netfilter/ip6t_frag.c
index e2bbc63dba5b..972f699af22c 100644
--- a/net/ipv6/netfilter/ip6t_frag.c
+++ b/net/ipv6/netfilter/ip6t_frag.c
@@ -127,7 +127,7 @@ frag_mt6_check(const char *tablename, const void *ip,
127 127
128static struct xt_match frag_mt6_reg __read_mostly = { 128static struct xt_match frag_mt6_reg __read_mostly = {
129 .name = "frag", 129 .name = "frag",
130 .family = AF_INET6, 130 .family = NFPROTO_IPV6,
131 .match = frag_mt6, 131 .match = frag_mt6,
132 .matchsize = sizeof(struct ip6t_frag), 132 .matchsize = sizeof(struct ip6t_frag),
133 .checkentry = frag_mt6_check, 133 .checkentry = frag_mt6_check,
diff --git a/net/ipv6/netfilter/ip6t_hbh.c b/net/ipv6/netfilter/ip6t_hbh.c
index 26654b26d7fa..d5edb51a595a 100644
--- a/net/ipv6/netfilter/ip6t_hbh.c
+++ b/net/ipv6/netfilter/ip6t_hbh.c
@@ -187,7 +187,7 @@ hbh_mt6_check(const char *tablename, const void *entry,
187static struct xt_match hbh_mt6_reg[] __read_mostly = { 187static struct xt_match hbh_mt6_reg[] __read_mostly = {
188 { 188 {
189 .name = "hbh", 189 .name = "hbh",
190 .family = AF_INET6, 190 .family = NFPROTO_IPV6,
191 .match = hbh_mt6, 191 .match = hbh_mt6,
192 .matchsize = sizeof(struct ip6t_opts), 192 .matchsize = sizeof(struct ip6t_opts),
193 .checkentry = hbh_mt6_check, 193 .checkentry = hbh_mt6_check,
@@ -196,7 +196,7 @@ static struct xt_match hbh_mt6_reg[] __read_mostly = {
196 }, 196 },
197 { 197 {
198 .name = "dst", 198 .name = "dst",
199 .family = AF_INET6, 199 .family = NFPROTO_IPV6,
200 .match = hbh_mt6, 200 .match = hbh_mt6,
201 .matchsize = sizeof(struct ip6t_opts), 201 .matchsize = sizeof(struct ip6t_opts),
202 .checkentry = hbh_mt6_check, 202 .checkentry = hbh_mt6_check,
diff --git a/net/ipv6/netfilter/ip6t_hl.c b/net/ipv6/netfilter/ip6t_hl.c
index 345671673845..25c1eb92fac3 100644
--- a/net/ipv6/netfilter/ip6t_hl.c
+++ b/net/ipv6/netfilter/ip6t_hl.c
@@ -51,7 +51,7 @@ hl_mt6(const struct sk_buff *skb, const struct net_device *in,
51 51
52static struct xt_match hl_mt6_reg __read_mostly = { 52static struct xt_match hl_mt6_reg __read_mostly = {
53 .name = "hl", 53 .name = "hl",
54 .family = AF_INET6, 54 .family = NFPROTO_IPV6,
55 .match = hl_mt6, 55 .match = hl_mt6,
56 .matchsize = sizeof(struct ip6t_hl_info), 56 .matchsize = sizeof(struct ip6t_hl_info),
57 .me = THIS_MODULE, 57 .me = THIS_MODULE,
diff --git a/net/ipv6/netfilter/ip6t_ipv6header.c b/net/ipv6/netfilter/ip6t_ipv6header.c
index 317a8960a757..ef0661aacea7 100644
--- a/net/ipv6/netfilter/ip6t_ipv6header.c
+++ b/net/ipv6/netfilter/ip6t_ipv6header.c
@@ -138,7 +138,7 @@ ipv6header_mt6_check(const char *tablename, const void *ip,
138 138
139static struct xt_match ipv6header_mt6_reg __read_mostly = { 139static struct xt_match ipv6header_mt6_reg __read_mostly = {
140 .name = "ipv6header", 140 .name = "ipv6header",
141 .family = AF_INET6, 141 .family = NFPROTO_IPV6,
142 .match = ipv6header_mt6, 142 .match = ipv6header_mt6,
143 .matchsize = sizeof(struct ip6t_ipv6header_info), 143 .matchsize = sizeof(struct ip6t_ipv6header_info),
144 .checkentry = ipv6header_mt6_check, 144 .checkentry = ipv6header_mt6_check,
diff --git a/net/ipv6/netfilter/ip6t_mh.c b/net/ipv6/netfilter/ip6t_mh.c
index e06678d07ec8..dd876274ff6e 100644
--- a/net/ipv6/netfilter/ip6t_mh.c
+++ b/net/ipv6/netfilter/ip6t_mh.c
@@ -84,7 +84,7 @@ mh_mt6_check(const char *tablename, const void *entry,
84 84
85static struct xt_match mh_mt6_reg __read_mostly = { 85static struct xt_match mh_mt6_reg __read_mostly = {
86 .name = "mh", 86 .name = "mh",
87 .family = AF_INET6, 87 .family = NFPROTO_IPV6,
88 .checkentry = mh_mt6_check, 88 .checkentry = mh_mt6_check,
89 .match = mh_mt6, 89 .match = mh_mt6,
90 .matchsize = sizeof(struct ip6t_mh), 90 .matchsize = sizeof(struct ip6t_mh),
diff --git a/net/ipv6/netfilter/ip6t_rt.c b/net/ipv6/netfilter/ip6t_rt.c
index 81aaf7aaaabf..7c544ae591d8 100644
--- a/net/ipv6/netfilter/ip6t_rt.c
+++ b/net/ipv6/netfilter/ip6t_rt.c
@@ -214,7 +214,7 @@ rt_mt6_check(const char *tablename, const void *entry,
214 214
215static struct xt_match rt_mt6_reg __read_mostly = { 215static struct xt_match rt_mt6_reg __read_mostly = {
216 .name = "rt", 216 .name = "rt",
217 .family = AF_INET6, 217 .family = NFPROTO_IPV6,
218 .match = rt_mt6, 218 .match = rt_mt6,
219 .matchsize = sizeof(struct ip6t_rt), 219 .matchsize = sizeof(struct ip6t_rt),
220 .checkentry = rt_mt6_check, 220 .checkentry = rt_mt6_check,