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/ip6_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/ip6_route.h')
-rw-r--r-- | include/net/ip6_route.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/net/ip6_route.h b/include/net/ip6_route.h index 86b1cb486903..d5c21d4d9e7e 100644 --- a/include/net/ip6_route.h +++ b/include/net/ip6_route.h | |||
@@ -86,7 +86,7 @@ extern int ip6_del_rt(struct rt6_info *); | |||
86 | 86 | ||
87 | extern int ip6_route_get_saddr(struct net *net, | 87 | extern int ip6_route_get_saddr(struct net *net, |
88 | struct rt6_info *rt, | 88 | struct rt6_info *rt, |
89 | struct in6_addr *daddr, | 89 | const struct in6_addr *daddr, |
90 | unsigned int prefs, | 90 | unsigned int prefs, |
91 | struct in6_addr *saddr); | 91 | struct in6_addr *saddr); |
92 | 92 | ||
@@ -112,9 +112,9 @@ extern int ip6_dst_hoplimit(struct dst_entry *dst); | |||
112 | * support functions for ND | 112 | * support functions for ND |
113 | * | 113 | * |
114 | */ | 114 | */ |
115 | extern struct rt6_info * rt6_get_dflt_router(struct in6_addr *addr, | 115 | extern struct rt6_info * rt6_get_dflt_router(const struct in6_addr *addr, |
116 | struct net_device *dev); | 116 | struct net_device *dev); |
117 | extern struct rt6_info * rt6_add_dflt_router(struct in6_addr *gwaddr, | 117 | extern struct rt6_info * rt6_add_dflt_router(const struct in6_addr *gwaddr, |
118 | struct net_device *dev, | 118 | struct net_device *dev, |
119 | unsigned int pref); | 119 | unsigned int pref); |
120 | 120 | ||
@@ -122,17 +122,17 @@ extern void rt6_purge_dflt_routers(struct net *net); | |||
122 | 122 | ||
123 | extern int rt6_route_rcv(struct net_device *dev, | 123 | extern int rt6_route_rcv(struct net_device *dev, |
124 | u8 *opt, int len, | 124 | u8 *opt, int len, |
125 | struct in6_addr *gwaddr); | 125 | const struct in6_addr *gwaddr); |
126 | 126 | ||
127 | extern void rt6_redirect(struct in6_addr *dest, | 127 | extern void rt6_redirect(const struct in6_addr *dest, |
128 | struct in6_addr *src, | 128 | const struct in6_addr *src, |
129 | struct in6_addr *saddr, | 129 | const struct in6_addr *saddr, |
130 | struct neighbour *neigh, | 130 | struct neighbour *neigh, |
131 | u8 *lladdr, | 131 | u8 *lladdr, |
132 | int on_link); | 132 | int on_link); |
133 | 133 | ||
134 | extern void rt6_pmtu_discovery(struct in6_addr *daddr, | 134 | extern void rt6_pmtu_discovery(const struct in6_addr *daddr, |
135 | struct in6_addr *saddr, | 135 | const struct in6_addr *saddr, |
136 | struct net_device *dev, | 136 | struct net_device *dev, |
137 | u32 pmtu); | 137 | u32 pmtu); |
138 | 138 | ||