diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/reassembly.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c index f1b86fdc06a..5d32dfa4d75 100644 --- a/net/ipv6/reassembly.c +++ b/net/ipv6/reassembly.c | |||
@@ -134,15 +134,16 @@ static unsigned int ip6_hashfn(struct inet_frag_queue *q) | |||
134 | return inet6_hash_frag(fq->id, &fq->saddr, &fq->daddr, ip6_frags.rnd); | 134 | return inet6_hash_frag(fq->id, &fq->saddr, &fq->daddr, ip6_frags.rnd); |
135 | } | 135 | } |
136 | 136 | ||
137 | int ip6_frag_match(struct inet_frag_queue *q, void *a) | 137 | bool ip6_frag_match(struct inet_frag_queue *q, void *a) |
138 | { | 138 | { |
139 | struct frag_queue *fq; | 139 | struct frag_queue *fq; |
140 | struct ip6_create_arg *arg = a; | 140 | struct ip6_create_arg *arg = a; |
141 | 141 | ||
142 | fq = container_of(q, struct frag_queue, q); | 142 | fq = container_of(q, struct frag_queue, q); |
143 | return (fq->id == arg->id && fq->user == arg->user && | 143 | return fq->id == arg->id && |
144 | ipv6_addr_equal(&fq->saddr, arg->src) && | 144 | fq->user == arg->user && |
145 | ipv6_addr_equal(&fq->daddr, arg->dst)); | 145 | ipv6_addr_equal(&fq->saddr, arg->src) && |
146 | ipv6_addr_equal(&fq->daddr, arg->dst); | ||
146 | } | 147 | } |
147 | EXPORT_SYMBOL(ip6_frag_match); | 148 | EXPORT_SYMBOL(ip6_frag_match); |
148 | 149 | ||