mirror of
https://passt.top/passt
synced 2025-06-06 07:56:38 +02: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:
parent
bf9492747d
commit
5ae21841ac
1 changed files with 2 additions and 1 deletions
1
passt.c
1
passt.c
|
@ -109,6 +109,7 @@ static void post_handler(struct ctx *c, const struct timespec *now)
|
|||
flow_defer_handler(c, now);
|
||||
#undef CALL_PROTO_HANDLER
|
||||
|
||||
if (!c->no_ndp)
|
||||
ndp_timer(c, now);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue