From 878e9dd88a2921a9750d14d029501e93c1221650 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 25 Jan 2024 10:31:04 +0100 Subject: [PATCH] RA: fix typo It happens that htonl(9000) = 10275 so it's not so bad, but better be correct :) --- icmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icmp.c b/icmp.c index d612d9b..54690eb 100644 --- a/icmp.c +++ b/icmp.c @@ -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)