aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/reassembly.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-05-17 23:57:13 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-18 01:40:27 -0400
commitcbc264cacd08e51fd4a64b5d5b1ba48f523990d1 (patch)
treef51584e8a78fad165debfe1e0d01715d9f493f3b /net/ipv6/reassembly.c
parent28e85100ae0fd814db723aeaaa785270bf4d600d (diff)
ip_frag: struct inet_frags match() method returns a bool
- match() method returns a boolean - return (A && B && C && D) -> return A && B && C && D - fix indentation Signed-off-by: Eric Dumazet <edumazet@google.com>
Diffstat (limited to 'net/ipv6/reassembly.c')
-rw-r--r--net/ipv6/reassembly.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c
index f1b86fdc06ad..5d32dfa4d75a 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
137int ip6_frag_match(struct inet_frag_queue *q, void *a) 137bool 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}
147EXPORT_SYMBOL(ip6_frag_match); 148EXPORT_SYMBOL(ip6_frag_match);
148 149