summaryrefslogtreecommitdiff
path: root/usr.sbin/rtadvd
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-08 18:11:14 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-08 18:11:14 +0000
commit8d03f4d85a299ed787368959d9c00f1656da19f2 (patch)
tree105a532488e16a634f76d3a134880d3554242871 /usr.sbin/rtadvd
parent6f18c8b091131f86fe9dba3486471f643a4bb646 (diff)
do not use deprecated ioctls
Diffstat (limited to 'usr.sbin/rtadvd')
-rw-r--r--usr.sbin/rtadvd/config.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c
index 52587c3553a..775d176e814 100644
--- a/usr.sbin/rtadvd/config.c
+++ b/usr.sbin/rtadvd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.15 2002/05/29 14:34:05 itojun Exp $ */
+/* $OpenBSD: config.c,v 1.16 2002/06/08 18:11:13 itojun Exp $ */
/* $KAME: config.c,v 1.62 2002/05/29 10:13:10 itojun Exp $ */
/*
@@ -590,6 +590,7 @@ delete_prefix(struct rainfo *rai, struct prefix *prefix)
static int
init_prefix(struct in6_prefixreq *ipr)
{
+#if 0
int s;
if ((s = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
@@ -622,6 +623,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