diff options
author | Tom Herbert <tom@herbertland.com> | 2015-08-17 16:42:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-18 00:33:06 -0400 |
commit | 4b048d6d9d0b0b90e1e94f2393796bbf1fa8df4e (patch) | |
tree | 0e94118e10507b79263054ac47b1166e8a4be220 /net/core/utils.c | |
parent | 2536862311d2276454ddef9dc36d6551a4b400fd (diff) |
net: Change pseudohdr argument of inet_proto_csum_replace* to be a bool
inet_proto_csum_replace4,2,16 take a pseudohdr argument which indicates
the checksum field carries a pseudo header. This argument should be a
boolean instead of an int.
Signed-off-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/utils.c')
-rw-r--r-- | net/core/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/utils.c b/net/core/utils.c index a7732a068043..cd7d202f340e 100644 --- a/net/core/utils.c +++ b/net/core/utils.c | |||
@@ -301,7 +301,7 @@ out: | |||
301 | EXPORT_SYMBOL(in6_pton); | 301 | EXPORT_SYMBOL(in6_pton); |
302 | 302 | ||
303 | void inet_proto_csum_replace4(__sum16 *sum, struct sk_buff *skb, | 303 | void inet_proto_csum_replace4(__sum16 *sum, struct sk_buff *skb, |
304 | __be32 from, __be32 to, int pseudohdr) | 304 | __be32 from, __be32 to, bool pseudohdr) |
305 | { | 305 | { |
306 | if (skb->ip_summed != CHECKSUM_PARTIAL) { | 306 | if (skb->ip_summed != CHECKSUM_PARTIAL) { |
307 | csum_replace4(sum, from, to); | 307 | csum_replace4(sum, from, to); |
@@ -318,7 +318,7 @@ EXPORT_SYMBOL(inet_proto_csum_replace4); | |||
318 | 318 | ||
319 | void inet_proto_csum_replace16(__sum16 *sum, struct sk_buff *skb, | 319 | void inet_proto_csum_replace16(__sum16 *sum, struct sk_buff *skb, |
320 | const __be32 *from, const __be32 *to, | 320 | const __be32 *from, const __be32 *to, |
321 | int pseudohdr) | 321 | bool pseudohdr) |
322 | { | 322 | { |
323 | __be32 diff[] = { | 323 | __be32 diff[] = { |
324 | ~from[0], ~from[1], ~from[2], ~from[3], | 324 | ~from[0], ~from[1], ~from[2], ~from[3], |