This commit is contained in:
Samuel Thibault 2024-01-18 02:39:32 +01:00
parent 0adfa09090
commit 1d19366e15
3 changed files with 4 additions and 4 deletions

View file

@ -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);