diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-11-19 12:21:56 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-11-19 21:10:42 +0100 |
commit | 5ae21841acd7f55a4b57b99a5097ca99b84f07c4 (patch) | |
tree | b746b10d0290c85d824ac3c38b1422b4cbc40517 | |
parent | bf9492747df006a794f281d6c26ee38989b44d23 (diff) | |
download | passt-5ae21841acd7f55a4b57b99a5097ca99b84f07c4.tar passt-5ae21841acd7f55a4b57b99a5097ca99b84f07c4.tar.gz passt-5ae21841acd7f55a4b57b99a5097ca99b84f07c4.tar.bz2 passt-5ae21841acd7f55a4b57b99a5097ca99b84f07c4.tar.lz passt-5ae21841acd7f55a4b57b99a5097ca99b84f07c4.tar.xz passt-5ae21841acd7f55a4b57b99a5097ca99b84f07c4.tar.zst passt-5ae21841acd7f55a4b57b99a5097ca99b84f07c4.zip |
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: 6e1e44293ef9 ("ndp: Send unsolicited Router Advertisements")
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | passt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); } /** |