Home
last modified time | relevance | path

Searched refs:icmph_p (Results 1 – 2 of 2) sorted by relevance

/dports/net/libnet/libnet-1.1.6/src/
H A Dlibnet_checksum.c315 struct libnet_icmpv4_hdr *icmph_p = local
318 h_len = end - (uint8_t*) icmph_p; /* ignore h_len, sum the packet we've coalesced */
322 icmph_p->icmp_sum = 0;
331 sum += libnet_in_cksum((uint16_t *)icmph_p, h_len);
332 icmph_p->icmp_sum = LIBNET_CKSUM_CARRY(sum);
337 struct libnet_icmpv6_hdr *icmph_p = local
340 h_len = end - (uint8_t*) icmph_p; /* ignore h_len, sum the packet we've coalesced */
344 icmph_p->icmp_sum = 0;
350 sum += libnet_in_cksum((uint16_t *)icmph_p, h_len);
351 icmph_p->icmp_sum = LIBNET_CKSUM_CARRY(sum);
/dports/net/thcrut/thcrut-1.2.5/Libnet-1.0.2a/src/
H A Dlibnet_checksum.c118 struct libnet_icmp_hdr *icmph_p = in libnet_do_checksum() local
121 icmph_p->icmp_sum = 0; in libnet_do_checksum()
122 sum = libnet_in_cksum((u_short *)icmph_p, len); in libnet_do_checksum()
123 icmph_p->icmp_sum = LIBNET_CKSUM_CARRY(sum); in libnet_do_checksum()