summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfd.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-03-07 10:28:15 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-03-07 10:28:15 +0000
commit56b4dcaaffe518f3956a530758aecfc2eb6452e0 (patch)
tree377e6f256d847fe32b5aa3875df9791a0425a891 /usr.sbin/ospfd/ospfd.c
parente23ab2df47790640b5ecc7f7452866c06177328d (diff)
Track interface state (up/down) and media status. Simplify the code a bit
by using the kif/kroute info while allocating interfaces.
Diffstat (limited to 'usr.sbin/ospfd/ospfd.c')
-rw-r--r--usr.sbin/ospfd/ospfd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c
index 165f859ee27..b135c55cf55 100644
--- a/usr.sbin/ospfd/ospfd.c
+++ b/usr.sbin/ospfd/ospfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.c,v 1.6 2005/02/27 08:21:15 norby Exp $ */
+/* $OpenBSD: ospfd.c,v 1.7 2005/03/07 10:28:14 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -141,6 +141,9 @@ main(int argc, char *argv[])
log_init(debug);
+ /* fetch interfaces early */
+ kif_init();
+
/* parse config file */
if ((conf = parse_config(conffile, OSPFD_OPT_VERBOSE)) == NULL )
exit(1);