aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-09-27 00:13:16 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-27 01:28:02 +0200
commit4b0ccb83237cad3dc22334c55cf7a63f3be3f4b3 (patch)
treeea9fbab6c327d112832f54040e233ba948372e5e
parentdd581730e54b934f80d5b6a820136707dc71c664 (diff)
downloadpasst-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndp.c b/ndp.c
index a1d76c1..e18d4cc 100644
--- a/ndp.c
+++ b/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);