Reset mtu in all paths
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
10
mud.c
10
mud.c
@@ -742,6 +742,16 @@ mud_set_mtu(struct mud *mud, size_t mtu)
|
|||||||
mtu -= 28U;
|
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;
|
mud->mtu = mtu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user