aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-04-10 02:42:10 -0400
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-04-12 00:43:18 -0400
commit9acd9f3ae92d0dc0ca7504fb48c1040e8bbc39fe (patch)
tree8438f08bc6b8642d1d373f07607e8e117e01aaa6 /net/ipv6/addrconf.c
parentdfd982baff01c18e3e1717c97fdac79c28f105ce (diff)
[IPV6]: Make address arguments const.
- net/ipv6/addrconf.c: ipv6_get_ifaddr(), ipv6_dev_get_saddr() - net/ipv6/mcast.c: ipv6_sock_mc_join(), ipv6_sock_mc_drop(), inet6_mc_check(), ipv6_dev_mc_inc(), __ipv6_dev_mc_dec(), ipv6_dev_mc_dec(), ipv6_chk_mcast_addr() - net/ipv6/route.c: rt6_lookup(), icmp6_dst_alloc() - net/ipv6/ip6_output.c: ip6_nd_hdr() - net/ipv6/ndisc.c: ndisc_send_ns(), ndisc_send_rs(), ndisc_send_redirect(), ndisc_get_neigh(), __ndisc_send() Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index d15f3e095e7e..4048c2b73b0b 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -940,7 +940,7 @@ struct ipv6_saddr_score {
940}; 940};
941 941
942struct ipv6_saddr_dst { 942struct ipv6_saddr_dst {
943 struct in6_addr *addr; 943 const struct in6_addr *addr;
944 int ifindex; 944 int ifindex;
945 int scope; 945 int scope;
946 int label; 946 int label;
@@ -1074,7 +1074,7 @@ out:
1074} 1074}
1075 1075
1076int ipv6_dev_get_saddr(struct net_device *dst_dev, 1076int ipv6_dev_get_saddr(struct net_device *dst_dev,
1077 struct in6_addr *daddr, unsigned int prefs, 1077 const struct in6_addr *daddr, unsigned int prefs,
1078 struct in6_addr *saddr) 1078 struct in6_addr *saddr)
1079{ 1079{
1080 struct ipv6_saddr_score scores[2], 1080 struct ipv6_saddr_score scores[2],
@@ -1309,7 +1309,7 @@ int ipv6_chk_prefix(struct in6_addr *addr, struct net_device *dev)
1309 1309
1310EXPORT_SYMBOL(ipv6_chk_prefix); 1310EXPORT_SYMBOL(ipv6_chk_prefix);
1311 1311
1312struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, struct in6_addr *addr, 1312struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, const struct in6_addr *addr,
1313 struct net_device *dev, int strict) 1313 struct net_device *dev, int strict)
1314{ 1314{
1315 struct inet6_ifaddr * ifp; 1315 struct inet6_ifaddr * ifp;