Do not issue deprecated ioctl.

Obtained from:	KAME
MFC after:	2 weeks
This commit is contained in:
ume 2002-06-15 18:56:32 +00:00
parent 97c178588b
commit 363cd408a4

View File

@ -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