aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-10-21 12:12:14 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-10-21 12:16:16 +0200
commitbf68270898a0ea72213adec0c4455ae88ce1a73f (patch)
treed2800e97b3438ac364ec26bbd31427843589736b
parenta620de294d50f493aaa0a5be69ae65aeb334dc9e (diff)
downloadpasst-bf68270898a0ea72213adec0c4455ae88ce1a73f.tar
passt-bf68270898a0ea72213adec0c4455ae88ce1a73f.tar.gz
passt-bf68270898a0ea72213adec0c4455ae88ce1a73f.tar.bz2
passt-bf68270898a0ea72213adec0c4455ae88ce1a73f.tar.lz
passt-bf68270898a0ea72213adec0c4455ae88ce1a73f.tar.xz
passt-bf68270898a0ea72213adec0c4455ae88ce1a73f.tar.zst
passt-bf68270898a0ea72213adec0c4455ae88ce1a73f.zip
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 <sbrivio@redhat.com>
-rw-r--r--ndp.c1
1 files changed, 1 insertions, 0 deletions
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;