From fd1a1285acd1bf2d6345d92746f6513b14793910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Thu, 22 Dec 2016 13:43:02 +0000 Subject: [PATCH] Set conf.mtu.local for all new path --- mud.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mud.c b/mud.c index 052cb2d..5a6aded 100644 --- a/mud.c +++ b/mud.c @@ -488,6 +488,8 @@ mud_path(struct mud *mud, struct mud_ipaddr *local_addr, mud_set_path(path, local_addr, addr); + path->conf.mtu.local = mud->mtu; // XXX + path->next = mud->path; mud->path = path; @@ -532,7 +534,6 @@ mud_peer(struct mud *mud, const char *name, const char *host, int port, path->state.active = 1; path->state.backup = !!backup; - path->conf.mtu.local = mud->mtu; // XXX return 0; }