OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9df4fd
)
ipv6: Make ipv6_mc_may_pull() return bool.
author
David S. Miller
<davem@davemloft.net>
Mon, 7 Oct 2019 13:37:27 +0000
(09:37 -0400)
committer
David S. Miller
<davem@davemloft.net>
Mon, 7 Oct 2019 13:37:27 +0000
(09:37 -0400)
Consistent with how pskb_may_pull() also now does so.
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/addrconf.h
patch
|
blob
|
history
diff --git
a/include/net/addrconf.h
b/include/net/addrconf.h
index
3f62b34
..
1bab881
100644
(file)
--- a/
include/net/addrconf.h
+++ b/
include/net/addrconf.h
@@
-202,11
+202,11
@@
u32 ipv6_addr_label(struct net *net, const struct in6_addr *addr,
/*
* multicast prototypes (mcast.c)
*/
-static inline
int
ipv6_mc_may_pull(struct sk_buff *skb,
- unsigned int len)
+static inline
bool
ipv6_mc_may_pull(struct sk_buff *skb,
+
unsigned int len)
{
if (skb_transport_offset(skb) + ipv6_transport_len(skb) < len)
- return
0
;
+ return
false
;
return pskb_may_pull(skb, len);
}