diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-06-01 22:07:31 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-06-01 22:07:31 +0000 |
commit | 682104df00ffc0a93adaf6c10985636d0c790d71 (patch) | |
tree | db5d9fda517a523c4367c209eba52bd7a97ce794 /usr.sbin/dvmrpd/kroute.c | |
parent | ebaf5bf14670c8777b969ec5238008e30d057d7e (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.c | 6 |
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 |