summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-12-21 10:28:49 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-12-21 10:28:49 +0000
commit1346ce0bdf2cebec601cb255cd06615ba60fc838 (patch)
treeb688043c4ddfc86a0fa69676f3f0423976517304 /usr.sbin/ospfd
parentf5be8bc82c80c4ed294bdf3347313893d44573ee (diff)
When receiving an IFINFO message, also update the MTU of the interface
Helps recovering from MTU mismatches. Prompted by a diff from Remi Locherer, ok claudio@
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r--usr.sbin/ospfd/ospfe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfe.c b/usr.sbin/ospfd/ospfe.c
index 891941ececa..6983b4f0cce 100644
--- a/usr.sbin/ospfd/ospfe.c
+++ b/usr.sbin/ospfd/ospfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfe.c,v 1.96 2016/09/03 10:22:57 renato Exp $ */
+/* $OpenBSD: ospfe.c,v 1.97 2016/12/21 10:28:48 jca Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -318,6 +318,7 @@ ospfe_dispatch_main(int fd, short event, void *bula)
iface->flags = kif->flags;
iface->linkstate =
kif->link_state;
+ iface->mtu = kif->mtu;
if (link_ok) {
if_fsm(iface,