diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-09-27 00:13:16 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-09-27 01:28:02 +0200 |
commit | 4b0ccb83237cad3dc22334c55cf7a63f3be3f4b3 (patch) | |
tree | ea9fbab6c327d112832f54040e233ba948372e5e | |
parent | dd581730e54b934f80d5b6a820136707dc71c664 (diff) | |
download | passt-4b0ccb83237cad3dc22334c55cf7a63f3be3f4b3.tar passt-4b0ccb83237cad3dc22334c55cf7a63f3be3f4b3.tar.gz passt-4b0ccb83237cad3dc22334c55cf7a63f3be3f4b3.tar.bz2 passt-4b0ccb83237cad3dc22334c55cf7a63f3be3f4b3.tar.lz passt-4b0ccb83237cad3dc22334c55cf7a63f3be3f4b3.tar.xz passt-4b0ccb83237cad3dc22334c55cf7a63f3be3f4b3.tar.zst passt-4b0ccb83237cad3dc22334c55cf7a63f3be3f4b3.zip |
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>
-rw-r--r-- | ndp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |