RA: fix typo

It happens that htonl(9000) = 10275 so it's not so bad, but better be
correct :)
This commit is contained in:
Samuel Thibault 2024-01-25 10:31:04 +01:00
parent 135ada4008
commit 878e9dd88a

2
icmp.c
View file

@ -141,7 +141,7 @@ void send_ipv6_ra(sessionidt s, tunnelidt t, struct in6_addr *ip)
p_nra->nd_ra_cksum = 0; // Checksum
p_nra->nd_ra_curhoplimit = 64; // Hop count
p_nra->nd_ra_flags_reserved = (ND_RA_FLAG_MANAGED|ND_RA_FLAG_OTHER); // Flags
p_nra->nd_ra_router_lifetime = AdvDefaultLifetime; // Lifetime
p_nra->nd_ra_router_lifetime = htons(AdvDefaultLifetime); // Lifetime
p_nra->nd_ra_reachable = 0; // Reachable time
p_nra->nd_ra_retransmit = 0; // Retrans timer
// Option PI after RA message (rfc4861)