From 1d19366e1538bc921a833d32065fbf689e65173b Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 18 Jan 2024 02:39:32 +0100 Subject: [PATCH] typo --- dhcp6.c | 2 +- icmp.c | 4 ++-- l2tpns.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dhcp6.c b/dhcp6.c index e4404fa..cb145eb 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -254,7 +254,7 @@ static void dhcp6_send_reply(sessionidt s, tunnelidt t, struct in6_addr *ip6_src len = ((uint8_t *) p_opt) - ((uint8_t *) p_udp); p_ip6_hdr->ip6_plen = p_udp->len = htons(len); - /* Use pseudo hearder for checksum calculation */ + /* Use pseudo-header for checksum calculation */ memset(&pseudo_hdr, 0, sizeof(pseudo_hdr)); memcpy(&pseudo_hdr.src, &p_ip6_hdr->ip6_src, 16); memcpy(&pseudo_hdr.dest, &p_ip6_hdr->ip6_dst, 16); diff --git a/icmp.c b/icmp.c index b6d4072..d612d9b 100644 --- a/icmp.c +++ b/icmp.c @@ -188,7 +188,7 @@ void send_ipv6_ra(sessionidt s, tunnelidt t, struct in6_addr *ip) // Length of payload (not header) p_ip6_hdr->ip6_plen = htons(l); - /* Use pseudo hearder for checksum calculation */ + /* Use pseudo-header for checksum calculation */ memset(&pseudo_hdr, 0, sizeof(pseudo_hdr)); memcpy(&pseudo_hdr.src, &p_ip6_hdr->ip6_src, 16); memcpy(&pseudo_hdr.dest, &p_ip6_hdr->ip6_dst, 16); @@ -197,7 +197,7 @@ void send_ipv6_ra(sessionidt s, tunnelidt t, struct in6_addr *ip) // Checksum is over the icmp6 payload plus the pseudo header p_nra->nd_ra_cksum = ipv6_checksum(&pseudo_hdr, (uint8_t *) p_nra, l); - // Length + hearder length + // Length + header length l += sizeof(*p_ip6_hdr); tunnelsend(b, l + (((uint8_t *) p_ip6_hdr)-b), t); // send it... diff --git a/l2tpns.c b/l2tpns.c index 1bd4dc7..ad25a1d 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -4115,7 +4115,7 @@ static void mainloop(void) { int i, j; uint8_t buf[65536]; - uint8_t *p = buf + 32; // for the hearder of the forwarded MPPP packet (see C_MPPP_FORWARD) + uint8_t *p = buf + 32; // for the header of the forwarded MPPP packet (see C_MPPP_FORWARD) // and the forwarded pppoe session int size_bufp = sizeof(buf) - 32; clockt next_cluster_ping = 0; // send initial ping immediately