diff options
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 129d7e1f311c..c663a3b70924 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -1283,7 +1283,7 @@ static int ipv6_count_addresses(struct inet6_dev *idev) | |||
1283 | return cnt; | 1283 | return cnt; |
1284 | } | 1284 | } |
1285 | 1285 | ||
1286 | int ipv6_chk_addr(struct net *net, struct in6_addr *addr, | 1286 | int ipv6_chk_addr(struct net *net, const struct in6_addr *addr, |
1287 | struct net_device *dev, int strict) | 1287 | struct net_device *dev, int strict) |
1288 | { | 1288 | { |
1289 | struct inet6_ifaddr *ifp; | 1289 | struct inet6_ifaddr *ifp; |
@@ -1326,7 +1326,7 @@ static bool ipv6_chk_same_addr(struct net *net, const struct in6_addr *addr, | |||
1326 | return false; | 1326 | return false; |
1327 | } | 1327 | } |
1328 | 1328 | ||
1329 | int ipv6_chk_prefix(struct in6_addr *addr, struct net_device *dev) | 1329 | int ipv6_chk_prefix(const struct in6_addr *addr, struct net_device *dev) |
1330 | { | 1330 | { |
1331 | struct inet6_dev *idev; | 1331 | struct inet6_dev *idev; |
1332 | struct inet6_ifaddr *ifa; | 1332 | struct inet6_ifaddr *ifa; |
@@ -1457,7 +1457,7 @@ void addrconf_dad_failure(struct inet6_ifaddr *ifp) | |||
1457 | 1457 | ||
1458 | /* Join to solicited addr multicast group. */ | 1458 | /* Join to solicited addr multicast group. */ |
1459 | 1459 | ||
1460 | void addrconf_join_solict(struct net_device *dev, struct in6_addr *addr) | 1460 | void addrconf_join_solict(struct net_device *dev, const struct in6_addr *addr) |
1461 | { | 1461 | { |
1462 | struct in6_addr maddr; | 1462 | struct in6_addr maddr; |
1463 | 1463 | ||
@@ -1468,7 +1468,7 @@ void addrconf_join_solict(struct net_device *dev, struct in6_addr *addr) | |||
1468 | ipv6_dev_mc_inc(dev, &maddr); | 1468 | ipv6_dev_mc_inc(dev, &maddr); |
1469 | } | 1469 | } |
1470 | 1470 | ||
1471 | void addrconf_leave_solict(struct inet6_dev *idev, struct in6_addr *addr) | 1471 | void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr) |
1472 | { | 1472 | { |
1473 | struct in6_addr maddr; | 1473 | struct in6_addr maddr; |
1474 | 1474 | ||
@@ -2113,7 +2113,7 @@ err_exit: | |||
2113 | /* | 2113 | /* |
2114 | * Manual configuration of address on an interface | 2114 | * Manual configuration of address on an interface |
2115 | */ | 2115 | */ |
2116 | static int inet6_addr_add(struct net *net, int ifindex, struct in6_addr *pfx, | 2116 | static int inet6_addr_add(struct net *net, int ifindex, const struct in6_addr *pfx, |
2117 | unsigned int plen, __u8 ifa_flags, __u32 prefered_lft, | 2117 | unsigned int plen, __u8 ifa_flags, __u32 prefered_lft, |
2118 | __u32 valid_lft) | 2118 | __u32 valid_lft) |
2119 | { | 2119 | { |
@@ -2187,7 +2187,7 @@ static int inet6_addr_add(struct net *net, int ifindex, struct in6_addr *pfx, | |||
2187 | return PTR_ERR(ifp); | 2187 | return PTR_ERR(ifp); |
2188 | } | 2188 | } |
2189 | 2189 | ||
2190 | static int inet6_addr_del(struct net *net, int ifindex, struct in6_addr *pfx, | 2190 | static int inet6_addr_del(struct net *net, int ifindex, const struct in6_addr *pfx, |
2191 | unsigned int plen) | 2191 | unsigned int plen) |
2192 | { | 2192 | { |
2193 | struct inet6_ifaddr *ifp; | 2193 | struct inet6_ifaddr *ifp; |
@@ -2350,7 +2350,7 @@ static void init_loopback(struct net_device *dev) | |||
2350 | add_addr(idev, &in6addr_loopback, 128, IFA_HOST); | 2350 | add_addr(idev, &in6addr_loopback, 128, IFA_HOST); |
2351 | } | 2351 | } |
2352 | 2352 | ||
2353 | static void addrconf_add_linklocal(struct inet6_dev *idev, struct in6_addr *addr) | 2353 | static void addrconf_add_linklocal(struct inet6_dev *idev, const struct in6_addr *addr) |
2354 | { | 2354 | { |
2355 | struct inet6_ifaddr * ifp; | 2355 | struct inet6_ifaddr * ifp; |
2356 | u32 addr_flags = IFA_F_PERMANENT; | 2356 | u32 addr_flags = IFA_F_PERMANENT; |
@@ -3121,7 +3121,7 @@ void if6_proc_exit(void) | |||
3121 | 3121 | ||
3122 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) | 3122 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) |
3123 | /* Check if address is a home address configured on any interface. */ | 3123 | /* Check if address is a home address configured on any interface. */ |
3124 | int ipv6_chk_home_addr(struct net *net, struct in6_addr *addr) | 3124 | int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr) |
3125 | { | 3125 | { |
3126 | int ret = 0; | 3126 | int ret = 0; |
3127 | struct inet6_ifaddr *ifp = NULL; | 3127 | struct inet6_ifaddr *ifp = NULL; |