-#endif
-
- syslog(LOG_DEBUG, "Neighbor solicitation request with checksum %hx", ntohs(ns->nd_ns_hdr.icmp6_cksum));
-
- /* Create pseudo header */
-
- memcpy(&pseudo.ip6_src, &hdr->ip6_src, 16);
- memcpy(&pseudo.ip6_dst, &hdr->ip6_dst, 16);
- pseudo.length = htonl(sizeof(*ns));
- pseudo.junk[0] = pseudo.junk[1] = pseudo.junk[2] = 0;
- pseudo.junk[3] = IPPROTO_ICMPV6;
-
- /* Generate checksum */
-
- ns->nd_ns_hdr.icmp6_cksum = 0;
-
- cksum = ipv6_cksum((short int *)&pseudo, sizeof(pseudo)/2, 0);
-
- syslog(LOG_DEBUG, "Our checksum %hx", cksum);