mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Do not issue deprecated ioctl.
Obtained from: KAME MFC after: 2 weeks
This commit is contained in:
parent
576ed0de29
commit
c4a0032fe3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98262
|
@ -800,6 +800,7 @@ update_prefix(struct prefix * prefix)
|
|||
static int
|
||||
init_prefix(struct in6_prefixreq *ipr)
|
||||
{
|
||||
#if 0
|
||||
int s;
|
||||
|
||||
if ((s = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
|
||||
|
@ -832,6 +833,13 @@ init_prefix(struct in6_prefixreq *ipr)
|
|||
|
||||
close(s);
|
||||
return 0;
|
||||
#else
|
||||
ipr->ipr_vltime = DEF_ADVVALIDLIFETIME;
|
||||
ipr->ipr_pltime = DEF_ADVPREFERREDLIFETIME;
|
||||
ipr->ipr_raf_onlink = 1;
|
||||
ipr->ipr_raf_auto = 1;
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue