summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d/interface.c
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2009-02-19 22:05:32 +0000
committerstsp <stsp@openbsd.org>2009-02-19 22:05:32 +0000
commit2bc51794045752ca02008fcdc3d1be1738d3fe04 (patch)
tree1fd0823b06cf6c514d66132796bd3098a674a2bb /usr.sbin/ospf6d/interface.c
parentIn ospfe, originate new Router and Network LSAs before informing RDE (diff)
downloadwireguard-openbsd-2bc51794045752ca02008fcdc3d1be1738d3fe04.tar.xz
wireguard-openbsd-2bc51794045752ca02008fcdc3d1be1738d3fe04.zip
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.c6
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) &&