mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[IPV6]: Fix Temporary Address Generation
From: Hiroyuki YAMAMORI <[email protected]> Since regen_count is stored in the public address, we need to reset it when we start renewing temporary address. Signed-off-by: YOSHIFUJI Hideaki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3dd3bf8357
commit
291d809ba5
1 changed files with 3 additions and 0 deletions
|
|
@ -2782,6 +2782,9 @@ restart:
|
|||
in6_ifa_hold(ifpub);
|
||||
spin_unlock(&ifp->lock);
|
||||
read_unlock(&addrconf_hash_lock);
|
||||
spin_lock(&ifpub->lock);
|
||||
ifpub->regen_count = 0;
|
||||
spin_unlock(&ifpub->lock);
|
||||
ipv6_create_tempaddr(ifpub, ifp);
|
||||
in6_ifa_put(ifpub);
|
||||
in6_ifa_put(ifp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue