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: 6e1e44293ef9 ("ndp: Send unsolicited Router Advertisements") Signed-off-by: David Gibson <david(a)gibson.dropbear.id.au> --- passt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/passt.c b/passt.c index a51a4e1..06e0a33 100644 --- a/passt.c +++ b/passt.c @@ -109,7 +109,8 @@ static void post_handler(struct ctx *c, const struct timespec *now) flow_defer_handler(c, now); #undef CALL_PROTO_HANDLER - ndp_timer(c, now); + if (!c->no_ndp) + ndp_timer(c, now); } /** -- 2.47.0