typo
This commit is contained in:
parent
0adfa09090
commit
1d19366e15
3 changed files with 4 additions and 4 deletions
4
icmp.c
4
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...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue