summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2016-12-21 10:28:48 +0000
committerjca <jca@openbsd.org>2016-12-21 10:28:48 +0000
commit40d3ccc4f6e233bfe30fca0e50d1669a4881dc2c (patch)
treef3c0a0cbcba14fb93c58721042b06fa30c3c1da7
parentGenerate an IFINFO message when changing the MTU of an interface. (diff)
downloadwireguard-openbsd-40d3ccc4f6e233bfe30fca0e50d1669a4881dc2c.tar.xz
wireguard-openbsd-40d3ccc4f6e233bfe30fca0e50d1669a4881dc2c.zip
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@
-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,