Correct timer management (deprecated) in nd6_timer.

Obtained from:	KAME
MFC after:	3 days
This commit is contained in:
Hajimu UMEMOTO 2002-04-24 19:09:48 +00:00
parent de0d2cad31
commit 83649f07c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95395

View File

@ -578,7 +578,8 @@ nd6_timer(ignored_arg)
if (regen)
goto addrloop; /* XXX: see below */
} else if (IFA6_IS_DEPRECATED(ia6)) {
}
if (IFA6_IS_DEPRECATED(ia6)) {
int oldflags = ia6->ia6_flags;
ia6->ia6_flags |= IN6_IFF_DEPRECATED;
@ -607,7 +608,7 @@ nd6_timer(ignored_arg)
goto addrloop;
}
}
} else if (IFA6_IS_DEPRECATED(ia6)) {
} else {
/*
* A new RA might have made a deprecated address
* preferred.