[NETFILTER]: nf_conntrack: use ipv6_addr_equal in nf_ct_reasm
Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f2ad52c9da
commit
6ea46c9c12
1 changed files with 4 additions and 4 deletions
|
@ -313,8 +313,8 @@ static struct nf_ct_frag6_queue *nf_ct_frag6_intern(unsigned int hash,
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
hlist_for_each_entry(fq, n, &nf_ct_frag6_hash[hash], list) {
|
hlist_for_each_entry(fq, n, &nf_ct_frag6_hash[hash], list) {
|
||||||
if (fq->id == fq_in->id &&
|
if (fq->id == fq_in->id &&
|
||||||
!ipv6_addr_cmp(&fq_in->saddr, &fq->saddr) &&
|
ipv6_addr_equal(&fq_in->saddr, &fq->saddr) &&
|
||||||
!ipv6_addr_cmp(&fq_in->daddr, &fq->daddr)) {
|
ipv6_addr_equal(&fq_in->daddr, &fq->daddr)) {
|
||||||
atomic_inc(&fq->refcnt);
|
atomic_inc(&fq->refcnt);
|
||||||
write_unlock(&nf_ct_frag6_lock);
|
write_unlock(&nf_ct_frag6_lock);
|
||||||
fq_in->last_in |= COMPLETE;
|
fq_in->last_in |= COMPLETE;
|
||||||
|
@ -376,8 +376,8 @@ fq_find(u32 id, struct in6_addr *src, struct in6_addr *dst)
|
||||||
read_lock(&nf_ct_frag6_lock);
|
read_lock(&nf_ct_frag6_lock);
|
||||||
hlist_for_each_entry(fq, n, &nf_ct_frag6_hash[hash], list) {
|
hlist_for_each_entry(fq, n, &nf_ct_frag6_hash[hash], list) {
|
||||||
if (fq->id == id &&
|
if (fq->id == id &&
|
||||||
!ipv6_addr_cmp(src, &fq->saddr) &&
|
ipv6_addr_equal(src, &fq->saddr) &&
|
||||||
!ipv6_addr_cmp(dst, &fq->daddr)) {
|
ipv6_addr_equal(dst, &fq->daddr)) {
|
||||||
atomic_inc(&fq->refcnt);
|
atomic_inc(&fq->refcnt);
|
||||||
read_unlock(&nf_ct_frag6_lock);
|
read_unlock(&nf_ct_frag6_lock);
|
||||||
return fq;
|
return fq;
|
||||||
|
|
Loading…
Reference in a new issue