OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 118... | Line 118... | |||
118 | .pf = NFPROTO_IPV6, |
118 | .pf = NFPROTO_IPV6, |
|
119 | .hooknum = NF_INET_LOCAL_IN, |
119 | .hooknum = NF_INET_LOCAL_IN, |
|
120 | .priority = NF_IP6_PRI_NAT_SRC, |
120 | .priority = NF_IP6_PRI_NAT_SRC, |
|
121 | --- a/net/netfilter/core.c |
121 | --- a/net/netfilter/core.c |
|
122 | +++ b/net/netfilter/core.c |
122 | +++ b/net/netfilter/core.c |
|
123 | @@ -160,6 +160,12 @@ nf_hook_entries_grow(const struct nf_hoo |
123 | @@ -135,6 +135,12 @@ nf_hook_entries_grow(const struct nf_hoo |
|
124 | ++i; |
124 | ++i; |
|
125 | continue; |
125 | continue; |
|
126 | } |
126 | } |
|
127 | + |
127 | + |
|
128 | + if (reg->nat_hook && orig_ops[i]->nat_hook) { |
128 | + if (reg->nat_hook && orig_ops[i]->nat_hook) { |