diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2009-02-19 22:05:33 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2009-02-19 22:05:33 +0000 |
commit | 73f37df46eaa0ea604ad4b015b998ba6d2581315 (patch) | |
tree | 62257122c6ea94e4343f1626fc3c08869ed72d34 /usr.sbin/ospf6d/interface.c | |
parent | 93d9528bcad68f474804bb8619933f4c9d5f2dbe (diff) |
Sync iface fsm state from ospfe to rde.
Also syncs other fields the ospfe is syncing to when getting
iface updates from parent process.
None of these fields are used by the rde yet, but state will be
important soon, for proper origination of Intra-Area-Prefix LSAs.
ok claudio@
Diffstat (limited to 'usr.sbin/ospf6d/interface.c')
-rw-r--r-- | usr.sbin/ospf6d/interface.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ospf6d/interface.c b/usr.sbin/ospf6d/interface.c index 9d58b26fd2c..5f231ad3410 100644 --- a/usr.sbin/ospf6d/interface.c +++ b/usr.sbin/ospf6d/interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interface.c,v 1.11 2009/01/29 19:07:53 stsp Exp $ */ +/* $OpenBSD: interface.c,v 1.12 2009/02/19 22:05:32 stsp Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -143,6 +143,10 @@ if_fsm(struct iface *iface, enum iface_event event) orig_rtr_lsa(iface); orig_link_lsa(iface); orig_intra_lsa_rtr(iface); + + /* state change inform RDE */ + ospfe_imsg_compose_rde(IMSG_IFINFO, + iface->self->peerid, 0, iface, sizeof(struct iface)); } if (old_state & (IF_STA_MULTI | IF_STA_POINTTOPOINT) && |