Home
last modified time | relevance | path

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

/dports/net/thcrut/thcrut-1.2.5/Libnet-1.0.2a/src/
H A Dlibnet_checksum.c69 struct libnet_ip_hdr *iph_p; in libnet_do_checksum() local
74 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()
/dports/net/libnet/libnet-1.1.6/src/
H A Dlibnet_checksum.c188 struct libnet_ipv4_hdr *iph_p = (struct libnet_ipv4_hdr *)iphdr; local
194 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 …]