summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfe.h
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/ospfe.h
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/ospfe.h')
-rw-r--r--usr.sbin/ospfd/ospfe.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/ospfe.h b/usr.sbin/ospfd/ospfe.h
index 9ee7500a488..9daa6e9ac0c 100644
--- a/usr.sbin/ospfd/ospfe.h
+++ b/usr.sbin/ospfd/ospfe.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfe.h,v 1.6 2005/02/10 14:05:48 claudio Exp $ */
+/* $OpenBSD: ospfe.h,v 1.7 2005/03/07 10:28:14 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -134,6 +134,7 @@ struct nbr {
u_int32_t ls_req_cnt;
int state;
+ u_int8_t link_state;
u_int8_t priority;
u_int8_t options;
u_int8_t last_rx_options;
@@ -177,7 +178,7 @@ void orig_net_lsa(struct iface *);
/* interface.c */
int if_fsm(struct iface *, enum iface_event);
-struct iface *if_new(char *, unsigned int);
+struct iface *if_new(struct kif *);
int if_del(struct iface *);
int if_init(struct ospfd_conf *);
int if_shutdown(struct ospfd_conf *);