diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-10-21 12:12:14 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-10-21 12:16:16 +0200 |
commit | bf68270898a0ea72213adec0c4455ae88ce1a73f (patch) | |
tree | d2800e97b3438ac364ec26bbd31427843589736b | |
parent | a620de294d50f493aaa0a5be69ae65aeb334dc9e (diff) | |
download | passt-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |