Searched refs:iph_p (Results 1 – 2 of 2) sorted by relevance
69 struct libnet_ip_hdr *iph_p; in libnet_do_checksum() local74 iph_p = (struct libnet_ip_hdr *)buf; in libnet_do_checksum()75 ip_hl = iph_p->ip_hl << 2; in libnet_do_checksum()98 sum = libnet_in_cksum((u_short *)&iph_p->ip_src, 8); in libnet_do_checksum()110 sum = libnet_in_cksum((u_short *)&iph_p->ip_src, 8); in libnet_do_checksum()208 iph_p->ip_sum = 0; in libnet_do_checksum()209 sum = libnet_in_cksum((u_short *)iph_p, len); in libnet_do_checksum()210 iph_p->ip_sum = LIBNET_CKSUM_CARRY(sum); in libnet_do_checksum()
188 struct libnet_ipv4_hdr *iph_p = (struct libnet_ipv4_hdr *)iphdr; local194 if(iphdr < beg || (iphdr+sizeof(*iph_p)) > end)206 if (iph_p->ip_v == 6)208 ip6h_p = (struct libnet_ipv6_hdr *)iph_p;209 iph_p = NULL;220 ip_hl = iph_p->ip_hl << 2;276 sum = libnet_in_cksum((uint16_t *)&iph_p->ip_src, 8);470 if(!iph_p) {473 iph_p->ip_sum = 0;474 sum = libnet_in_cksum((uint16_t *)iph_p, ip_hl);[all …]