summaryrefslogtreecommitdiff
path: root/usr.sbin/dvmrpd/kroute.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2006-06-01 22:07:31 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2006-06-01 22:07:31 +0000
commit682104df00ffc0a93adaf6c10985636d0c790d71 (patch)
treedb5d9fda517a523c4367c209eba52bd7a97ce794 /usr.sbin/dvmrpd/kroute.c
parentebaf5bf14670c8777b969ec5238008e30d057d7e (diff)
More kroute.c cleanup and start using the routing socket to track interface
states.
Diffstat (limited to 'usr.sbin/dvmrpd/kroute.c')
-rw-r--r--usr.sbin/dvmrpd/kroute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/dvmrpd/kroute.c b/usr.sbin/dvmrpd/kroute.c
index 51e9f7571ee..e63769bfef0 100644
--- a/usr.sbin/dvmrpd/kroute.c
+++ b/usr.sbin/dvmrpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.1 2006/06/01 14:12:20 norby Exp $ */
+/* $OpenBSD: kroute.c,v 1.2 2006/06/01 22:07:30 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -80,11 +80,10 @@ kif_init(void)
}
int
-kr_init(int fs)
+kr_init(void)
{
int opt, fd;
-
if ((fd = socket(AF_ROUTE, SOCK_RAW, 0)) == -1) {
log_warn("kr_init: socket");
return (-1);
@@ -108,6 +107,7 @@ void
kr_shutdown(void)
{
kif_clear();
+ close(EVENT_FD((&kr_state.ev)));
}
void