From 4b0ccb83237cad3dc22334c55cf7a63f3be3f4b3 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Mon, 27 Sep 2021 00:13:16 +0200 Subject: 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 --- ndp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ndp.c') 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); -- cgit v1.2.3