diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-12-21 10:28:49 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2016-12-21 10:28:49 +0000 |
commit | 1346ce0bdf2cebec601cb255cd06615ba60fc838 (patch) | |
tree | b688043c4ddfc86a0fa69676f3f0423976517304 /usr.sbin/ospfd | |
parent | f5be8bc82c80c4ed294bdf3347313893d44573ee (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.c | 3 |
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, |