Searched refs:dad_pkt (Results 1 – 1 of 1) sorted by relevance
/packages/modules/Connectivity/clatd/ |
D | clatd.c | 217 } dad_pkt = { in send_dad() local 220 .ip6_plen = htons(sizeof(dad_pkt) - sizeof(struct ip6_hdr)), // payload length, ie. 32 in send_dad() 242 arc4random_buf(&dad_pkt.ns_opt_nonce, sizeof(dad_pkt.ns_opt_nonce)); in send_dad() 245 _Static_assert(sizeof(dad_pkt) == 40 + 8 + 16 + 8, "sizeof dad packet != 72"); in send_dad() 258 uint32_t csum = dad_pkt.ip6h.ip6_plen + htons(dad_pkt.ip6h.ip6_nxt); in send_dad() 259 csum = ip_checksum_add(csum, &dad_pkt.ip6h.ip6_src, sizeof(dad_pkt) - 8); in send_dad() 260 dad_pkt.ns.nd_ns_cksum = ip_checksum_finish(csum); in send_dad() 264 .sin6_addr = dad_pkt.ip6h.ip6_dst, in send_dad() 268 sendto(fd, &dad_pkt, sizeof(dad_pkt), 0 /*flags*/, (const struct sockaddr *)&dst, sizeof(dst)); in send_dad()
|