summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfd.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-02-09 17:41:17 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-02-09 17:41:17 +0000
commit8fec66e0bb88516c21cbc71b5de4d89cd89887ec (patch)
tree258006b8c930849313a8f17cb6e802af1f6ffb78 /usr.sbin/ospfd/ospfd.h
parentbb9e83b635102fb3d018ce12711b79d2bdb1d5a9 (diff)
Fix interface fsm by inserting dummy events and actions as placeholder
for 0. Action 0 was IF_ACT_STRT and that's why if_act_start() got called multiple times. The inappropriate hack from the previous commit is no longer needed.
Diffstat (limited to 'usr.sbin/ospfd/ospfd.h')
-rw-r--r--usr.sbin/ospfd/ospfd.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfd.h b/usr.sbin/ospfd/ospfd.h
index 78e114c50ab..5a2c3855d6d 100644
--- a/usr.sbin/ospfd/ospfd.h
+++ b/usr.sbin/ospfd/ospfd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.h,v 1.6 2005/02/09 14:39:56 claudio Exp $ */
+/* $OpenBSD: ospfd.h,v 1.7 2005/02/09 17:41:16 claudio Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -173,6 +173,7 @@ struct area {
/* interface events */
enum iface_event {
+ IF_EVT_NOTHING,
IF_EVT_UP,
IF_EVT_WTIMER,
IF_EVT_BACKUP_SEEN,
@@ -183,6 +184,7 @@ enum iface_event {
};
static const char * const if_event_names[] = {
+ "NOTHING",
"UP",
"WAITTIMER",
"BACKUPSEEN",
@@ -194,6 +196,7 @@ static const char * const if_event_names[] = {
/* interface actions */
enum iface_action {
+ IF_ACT_NOTHING,
IF_ACT_STRT,
IF_ACT_ELECT,
IF_ACT_RST