From bf68270898a0ea72213adec0c4455ae88ce1a73f Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 21 Oct 2021 12:12:14 +0200 Subject: ndp: Set (ICMP) hop limit to 255 in router advertisement Found while re-reading this part, zero works as well, but a host might legitimately refuse a value that's below a given threshold. Signed-off-by: Stefano Brivio --- ndp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ndp.c') diff --git a/ndp.c b/ndp.c index c04df6a..3487e51 100644 --- a/ndp.c +++ b/ndp.c @@ -100,6 +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_hop_limit = 255; ihr->icmp6_rt_lifetime = htons(9000); ihr->icmp6_addrconf_managed = 1; -- cgit v1.2.3