diff options
author | Eric Dumazet <edumazet@google.com> | 2012-05-18 14:57:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-19 01:08:16 -0400 |
commit | a50feda546ac03415707a9bbcac8d6b20714db21 (patch) | |
tree | 3c1f5d64399e713c97545ca39984d4d2efe6ca5d /include/net | |
parent | 32e9072b92a1c556a303d8d0e0d64feb667e601d (diff) |
ipv6: bool/const conversions phase2
Mostly bool conversions, some inline removals and const additions.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/addrconf.h | 18 | ||||
-rw-r--r-- | include/net/ip6_route.h | 2 | ||||
-rw-r--r-- | include/net/ipv6.h | 2 | ||||
-rw-r--r-- | include/net/rawv6.h | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 27f450ba9514..f2b801c4b555 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h | |||
@@ -131,9 +131,9 @@ extern int ipv6_sock_mc_join(struct sock *sk, int ifindex, | |||
131 | extern int ipv6_sock_mc_drop(struct sock *sk, int ifindex, | 131 | extern int ipv6_sock_mc_drop(struct sock *sk, int ifindex, |
132 | const struct in6_addr *addr); | 132 | const struct in6_addr *addr); |
133 | extern void ipv6_sock_mc_close(struct sock *sk); | 133 | extern void ipv6_sock_mc_close(struct sock *sk); |
134 | extern int inet6_mc_check(struct sock *sk, | 134 | extern bool inet6_mc_check(struct sock *sk, |
135 | const struct in6_addr *mc_addr, | 135 | const struct in6_addr *mc_addr, |
136 | const struct in6_addr *src_addr); | 136 | const struct in6_addr *src_addr); |
137 | 137 | ||
138 | extern int ipv6_dev_mc_inc(struct net_device *dev, const struct in6_addr *addr); | 138 | extern int ipv6_dev_mc_inc(struct net_device *dev, const struct in6_addr *addr); |
139 | extern int __ipv6_dev_mc_dec(struct inet6_dev *idev, const struct in6_addr *addr); | 139 | extern int __ipv6_dev_mc_dec(struct inet6_dev *idev, const struct in6_addr *addr); |
@@ -146,10 +146,10 @@ extern void ipv6_mc_init_dev(struct inet6_dev *idev); | |||
146 | extern void ipv6_mc_destroy_dev(struct inet6_dev *idev); | 146 | extern void ipv6_mc_destroy_dev(struct inet6_dev *idev); |
147 | extern void addrconf_dad_failure(struct inet6_ifaddr *ifp); | 147 | extern void addrconf_dad_failure(struct inet6_ifaddr *ifp); |
148 | 148 | ||
149 | extern int ipv6_chk_mcast_addr(struct net_device *dev, | 149 | extern bool ipv6_chk_mcast_addr(struct net_device *dev, |
150 | const struct in6_addr *group, | 150 | const struct in6_addr *group, |
151 | const struct in6_addr *src_addr); | 151 | const struct in6_addr *src_addr); |
152 | extern int ipv6_is_mld(struct sk_buff *skb, int nexthdr); | 152 | extern bool ipv6_is_mld(struct sk_buff *skb, int nexthdr); |
153 | 153 | ||
154 | extern void addrconf_prefix_rcv(struct net_device *dev, | 154 | extern void addrconf_prefix_rcv(struct net_device *dev, |
155 | u8 *opt, int len, bool sllao); | 155 | u8 *opt, int len, bool sllao); |
@@ -163,8 +163,8 @@ extern void ipv6_sock_ac_close(struct sock *sk); | |||
163 | 163 | ||
164 | extern int ipv6_dev_ac_inc(struct net_device *dev, const struct in6_addr *addr); | 164 | extern int ipv6_dev_ac_inc(struct net_device *dev, const struct in6_addr *addr); |
165 | extern int __ipv6_dev_ac_dec(struct inet6_dev *idev, const struct in6_addr *addr); | 165 | extern int __ipv6_dev_ac_dec(struct inet6_dev *idev, const struct in6_addr *addr); |
166 | extern int ipv6_chk_acast_addr(struct net *net, struct net_device *dev, | 166 | extern bool ipv6_chk_acast_addr(struct net *net, struct net_device *dev, |
167 | const struct in6_addr *addr); | 167 | const struct in6_addr *addr); |
168 | 168 | ||
169 | 169 | ||
170 | /* Device notifier */ | 170 | /* Device notifier */ |
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index c062b6773cc7..37c1a1ed82c1 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
@@ -175,7 +175,7 @@ static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, | |||
175 | spin_unlock(&sk->sk_dst_lock); | 175 | spin_unlock(&sk->sk_dst_lock); |
176 | } | 176 | } |
177 | 177 | ||
178 | static inline int ipv6_unicast_destination(struct sk_buff *skb) | 178 | static inline bool ipv6_unicast_destination(const struct sk_buff *skb) |
179 | { | 179 | { |
180 | struct rt6_info *rt = (struct rt6_info *) skb_dst(skb); | 180 | struct rt6_info *rt = (struct rt6_info *) skb_dst(skb); |
181 | 181 | ||
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 1402139629e1..aecf88436abf 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -559,7 +559,7 @@ extern void ipv6_push_frag_opts(struct sk_buff *skb, | |||
559 | extern int ipv6_skip_exthdr(const struct sk_buff *, int start, | 559 | extern int ipv6_skip_exthdr(const struct sk_buff *, int start, |
560 | u8 *nexthdrp, __be16 *frag_offp); | 560 | u8 *nexthdrp, __be16 *frag_offp); |
561 | 561 | ||
562 | extern int ipv6_ext_hdr(u8 nexthdr); | 562 | extern bool ipv6_ext_hdr(u8 nexthdr); |
563 | 563 | ||
564 | extern int ipv6_find_tlv(struct sk_buff *skb, int offset, int type); | 564 | extern int ipv6_find_tlv(struct sk_buff *skb, int offset, int type); |
565 | 565 | ||
diff --git a/include/net/rawv6.h b/include/net/rawv6.h index cf7577234457..e7ea660e4db6 100644 --- a/include/net/rawv6.h +++ b/include/net/rawv6.h | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | void raw6_icmp_error(struct sk_buff *, int nexthdr, | 6 | void raw6_icmp_error(struct sk_buff *, int nexthdr, |
7 | u8 type, u8 code, int inner_offset, __be32); | 7 | u8 type, u8 code, int inner_offset, __be32); |
8 | int raw6_local_deliver(struct sk_buff *, int); | 8 | bool raw6_local_deliver(struct sk_buff *, int); |
9 | 9 | ||
10 | extern int rawv6_rcv(struct sock *sk, | 10 | extern int rawv6_rcv(struct sock *sk, |
11 | struct sk_buff *skb); | 11 | struct sk_buff *skb); |