mirror of
https://passt.top/passt
synced 2025-03-20 07:58:53 +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: 6e1e44293ef9 ("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
3
passt.c
3
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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user