diff options
-rw-r--r-- | include/net/inet_frag.h | 3 | ||||
-rw-r--r-- | include/net/ipv6.h | 2 | ||||
-rw-r--r-- | net/ipv4/ip_fragment.c | 10 | ||||
-rw-r--r-- | net/ipv6/reassembly.c | 9 |
4 files changed, 12 insertions, 12 deletions
diff --git a/include/net/inet_frag.h b/include/net/inet_frag.h index 16ff29a7bb30..2431cf83aeca 100644 --- a/include/net/inet_frag.h +++ b/include/net/inet_frag.h | |||
@@ -46,8 +46,7 @@ struct inet_frags { | |||
46 | void *arg); | 46 | void *arg); |
47 | void (*destructor)(struct inet_frag_queue *); | 47 | void (*destructor)(struct inet_frag_queue *); |
48 | void (*skb_free)(struct sk_buff *); | 48 | void (*skb_free)(struct sk_buff *); |
49 | int (*match)(struct inet_frag_queue *q, | 49 | bool (*match)(struct inet_frag_queue *q, void *arg); |
50 | void *arg); | ||
51 | void (*frag_expire)(unsigned long data); | 50 | void (*frag_expire)(unsigned long data); |
52 | }; | 51 | }; |
53 | 52 | ||
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 4332e9aad853..5f65e7c45266 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -387,7 +387,7 @@ struct ip6_create_arg { | |||
387 | }; | 387 | }; |
388 | 388 | ||
389 | void ip6_frag_init(struct inet_frag_queue *q, void *a); | 389 | void ip6_frag_init(struct inet_frag_queue *q, void *a); |
390 | int ip6_frag_match(struct inet_frag_queue *q, void *a); | 390 | bool ip6_frag_match(struct inet_frag_queue *q, void *a); |
391 | 391 | ||
392 | static inline int ipv6_addr_any(const struct in6_addr *a) | 392 | static inline int ipv6_addr_any(const struct in6_addr *a) |
393 | { | 393 | { |
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index 9f9bd139335f..695b27f44161 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c | |||
@@ -148,17 +148,17 @@ static unsigned int ip4_hashfn(struct inet_frag_queue *q) | |||
148 | return ipqhashfn(ipq->id, ipq->saddr, ipq->daddr, ipq->protocol); | 148 | return ipqhashfn(ipq->id, ipq->saddr, ipq->daddr, ipq->protocol); |
149 | } | 149 | } |
150 | 150 | ||
151 | static int ip4_frag_match(struct inet_frag_queue *q, void *a) | 151 | static bool ip4_frag_match(struct inet_frag_queue *q, void *a) |
152 | { | 152 | { |
153 | struct ipq *qp; | 153 | struct ipq *qp; |
154 | struct ip4_create_arg *arg = a; | 154 | struct ip4_create_arg *arg = a; |
155 | 155 | ||
156 | qp = container_of(q, struct ipq, q); | 156 | qp = container_of(q, struct ipq, q); |
157 | return qp->id == arg->iph->id && | 157 | return qp->id == arg->iph->id && |
158 | qp->saddr == arg->iph->saddr && | 158 | qp->saddr == arg->iph->saddr && |
159 | qp->daddr == arg->iph->daddr && | 159 | qp->daddr == arg->iph->daddr && |
160 | qp->protocol == arg->iph->protocol && | 160 | qp->protocol == arg->iph->protocol && |
161 | qp->user == arg->user; | 161 | qp->user == arg->user; |
162 | } | 162 | } |
163 | 163 | ||
164 | /* Memory Tracking Functions. */ | 164 | /* Memory Tracking Functions. */ |
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 | ||
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 | ||