diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2015-03-21 18:32:02 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2015-03-21 18:32:02 +0000 |
commit | 282d7551d49e738c78d84a3db40f079acd49375e (patch) | |
tree | f5ab7f36d071e976a6f1a41560c1c37f780fc2d7 /usr.sbin/ldpd/ldpe.h | |
parent | b4756efb3fa7d3b8000f8114603e84ec3db6942d (diff) |
Remove interface finite state machine.
In the name of simplicity, remove the interface FSM that was inherited
from ospfd. In ldpd interfaces are just up or down, so keeping a
FSM for that is an overkill. Now instead of calling if_fsm(), just
call if_update() whenever a relevant event occurs (status change,
address addition/removal).
Additional notes:
1 - s/if_act_/if_/
2 - Remove the IMSG_IFUP and IMSG_IFDOWN events. Now whenever an
interface changes its state a IMSG_IFSTATUS event will be generated
with the new status.
kroute.c ldpd.h ldpe.c ldpe.h CVS:
----------------------------------------------------------------------
Diffstat (limited to 'usr.sbin/ldpd/ldpe.h')
-rw-r--r-- | usr.sbin/ldpd/ldpe.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/ldpe.h b/usr.sbin/ldpd/ldpe.h index 791f4818f4e..761d3d8d874 100644 --- a/usr.sbin/ldpd/ldpe.h +++ b/usr.sbin/ldpd/ldpe.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ldpe.h,v 1.32 2014/10/25 03:23:49 lteo Exp $ */ +/* $OpenBSD: ldpe.h,v 1.33 2015/03/21 18:32:01 renato Exp $ */ /* * Copyright (c) 2004, 2005, 2008 Esben Norby <norby@openbsd.org> @@ -136,7 +136,9 @@ void ldpe_fib_update(int); void ldpe_iface_ctl(struct ctl_conn *, unsigned int); /* interface.c */ -int if_fsm(struct iface *, enum iface_event); +int if_start(struct iface *); +int if_reset(struct iface *); +int if_update(struct iface *); struct iface *if_new(struct kif *); void if_del(struct iface *); |