mirror of
https://passt.top/passt
synced 2024-12-22 13:45:32 +00:00
ndp: Set router lifetime to 9000s instead of 3600s
Seen while testing: lifetime expires while we're flooding a tap interface with UDP packets, the router advertisement comes too late, and the kernel drops the default router in the namespace. This should only affect testing, so go for the maximum allowed value, that is, 9000 seconds. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
dd581730e5
commit
4b0ccb8323
2
ndp.c
2
ndp.c
@ -100,7 +100,7 @@ int ndp(struct ctx *c, struct ethhdr *eh, size_t len)
|
||||
info("NDP: received RS, sending RA");
|
||||
ihr->icmp6_type = RA;
|
||||
ihr->icmp6_code = 0;
|
||||
ihr->icmp6_rt_lifetime = htons(3600);
|
||||
ihr->icmp6_rt_lifetime = htons(9000);
|
||||
ihr->icmp6_addrconf_managed = 1;
|
||||
|
||||
p = (unsigned char *)(ihr + 1);
|
||||
|
Loading…
Reference in New Issue
Block a user