diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-04-22 00:53:02 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-22 14:04:14 -0400 |
commit | b71d1d426d263b0b6cb5760322efebbfc89d4463 (patch) | |
tree | 226ca7390bd6187ec9139d2ccedd26fd94d8e57a /include/net/route.h | |
parent | 5f8629c526b4f7e529a6d27bbd802c0dc7fcc357 (diff) |
inet: constify ip headers and in6_addr
Add const qualifiers to structs iphdr, ipv6hdr and in6_addr pointers
where possible, to make code intention more obvious.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/route.h')
-rw-r--r-- | include/net/route.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/route.h b/include/net/route.h index 3782cddd1383..b3962e249e14 100644 --- a/include/net/route.h +++ b/include/net/route.h | |||
@@ -191,7 +191,8 @@ static inline int ip_route_input_noref(struct sk_buff *skb, __be32 dst, __be32 s | |||
191 | return ip_route_input_common(skb, dst, src, tos, devin, true); | 191 | return ip_route_input_common(skb, dst, src, tos, devin, true); |
192 | } | 192 | } |
193 | 193 | ||
194 | extern unsigned short ip_rt_frag_needed(struct net *net, struct iphdr *iph, unsigned short new_mtu, struct net_device *dev); | 194 | extern unsigned short ip_rt_frag_needed(struct net *net, const struct iphdr *iph, |
195 | unsigned short new_mtu, struct net_device *dev); | ||
195 | extern void ip_rt_send_redirect(struct sk_buff *skb); | 196 | extern void ip_rt_send_redirect(struct sk_buff *skb); |
196 | 197 | ||
197 | extern unsigned inet_addr_type(struct net *net, __be32 addr); | 198 | extern unsigned inet_addr_type(struct net *net, __be32 addr); |