1
0
mirror of https://passt.top/passt synced 2024-12-22 13:45:32 +00:00

ndp: Don't send unsolicited RAs if NDP is disabled

We recently added support for sending unsolicited NDP Router Advertisement
packets.  While we (correctly) disable this if the --no-ra option is given
we incorrectly still send them if --no-ndp is set.  Fix the oversight.

Fixes: 6e1e44293e ("ndp: Send unsolicited Router Advertisements")
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
David Gibson 2024-11-19 12:21:56 +11:00 committed by Stefano Brivio
parent bf9492747d
commit 5ae21841ac

View File

@ -109,6 +109,7 @@ static void post_handler(struct ctx *c, const struct timespec *now)
flow_defer_handler(c, now); flow_defer_handler(c, now);
#undef CALL_PROTO_HANDLER #undef CALL_PROTO_HANDLER
if (!c->no_ndp)
ndp_timer(c, now); ndp_timer(c, now);
} }