Lines Matching refs:icmpr
197 struct icmphdr *icmpr; in sandbox_eth_ping_req_to_reply() local
220 icmpr = (struct icmphdr *)(ipr + 1); in sandbox_eth_ping_req_to_reply()
229 icmpr->type = ICMP_ECHO_REPLY; in sandbox_eth_ping_req_to_reply()
230 icmpr->checksum = 0; in sandbox_eth_ping_req_to_reply()
231 icmpr->checksum = compute_ip_checksum(icmpr, ICMPHDR_SIZE); in sandbox_eth_ping_req_to_reply()
295 struct icmphdr *icmpr; in sandbox_eth_recv_ping_req() local
318 icmpr = (struct icmphdr *)(ipr + 1); in sandbox_eth_recv_ping_req()
320 icmpr->type = ICMP_ECHO_REQUEST; in sandbox_eth_recv_ping_req()
321 icmpr->code = 0; in sandbox_eth_recv_ping_req()
322 icmpr->checksum = 0; in sandbox_eth_recv_ping_req()
323 icmpr->id = 0; in sandbox_eth_recv_ping_req()
324 icmpr->sequence = htons(1); in sandbox_eth_recv_ping_req()
325 icmpr->checksum = compute_ip_checksum(icmpr, ICMPHDR_SIZE); in sandbox_eth_recv_ping_req()