Reset mtu in all paths

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-03-17 13:48:04 +00:00
parent c6fbe52fbd
commit 9a626f2889

10
mud.c
View File

@@ -742,6 +742,16 @@ mud_set_mtu(struct mud *mud, size_t mtu)
mtu -= 28U;
}
for (unsigned i = 0; i < mud->count; i++) {
struct mud_path *path = &mud->paths[i];
if (path->state == MUD_EMPTY)
continue;
path->mtu.ok = mtu;
path->mtu.probe = mtu;
}
mud->mtu = mtu;
}