Lines Matching refs:iphdr
84 struct ip_hdr *iphdr;
91 iphdr = (struct ip_hdr *)p->payload;
92 hlen = IPH_HL(iphdr) * 4;
168 iphdr = (struct ip_hdr *)r->payload;
190 ip_addr_copy(iphdr->src, *ip_current_dest_addr());
191 ip_addr_copy(iphdr->dest, *ip_current_src_addr());
205 IPH_TTL_SET(iphdr, ICMP_TTL);
206 IPH_CHKSUM_SET(iphdr, 0);
208 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN));
294 struct ip_hdr *iphdr;
309 iphdr = (struct ip_hdr *)p->payload;
311 ip_addr_debug_print(ICMP_DEBUG, &(iphdr->src));
313 ip_addr_debug_print(ICMP_DEBUG, &(iphdr->dest));
334 ip_addr_copy(iphdr_src, iphdr->src);