Don't send packets to DOWN paths
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
2
mud.c
2
mud.c
@@ -1524,7 +1524,7 @@ mud_send(struct mud *mud, const void *data, size_t size, unsigned tc)
|
|||||||
for (unsigned i = 0; i < mud->count; i++) {
|
for (unsigned i = 0; i < mud->count; i++) {
|
||||||
struct mud_path *path = &mud->paths[i];
|
struct mud_path *path = &mud->paths[i];
|
||||||
|
|
||||||
if (path->state < MUD_DOWN)
|
if (path->state <= MUD_DOWN)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!path->r_ratemax)
|
if (!path->r_ratemax)
|
||||||
|
|||||||
Reference in New Issue
Block a user