Searched refs:icmph_p (Results 1 – 2 of 2) sorted by relevance
315 struct libnet_icmpv4_hdr *icmph_p = local318 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 = local340 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);
118 struct libnet_icmp_hdr *icmph_p = in libnet_do_checksum() local121 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()