Searched refs:icmp (Results 1 – 3 of 3) sorted by relevance
27 struct icmp_hdr *icmp = (struct icmp_hdr *)(pkt + IP_HDR_SIZE); in set_icmp_header() local31 icmp->type = ICMP_ECHO_REQUEST; in set_icmp_header()32 icmp->code = 0; in set_icmp_header()33 icmp->checksum = 0; in set_icmp_header()34 icmp->un.echo.id = 0; in set_icmp_header()35 icmp->un.echo.sequence = htons(ping_seq_number++); in set_icmp_header()36 icmp->checksum = compute_ip_checksum(icmp, ICMP_HDR_SIZE); in set_icmp_header()
356 struct icmp_hdr *icmp; in sb_check_ping_reply() local368 icmp = (struct icmp_hdr *)&ip->udp_src; in sb_check_ping_reply()370 if (icmp->type != ICMP_ECHO_REPLY) in sb_check_ping_reply()
120 struct icmp_hdr *icmp; in sandbox_eth_ping_req_to_reply() local133 icmp = (struct icmp_hdr *)&ip->udp_src; in sandbox_eth_ping_req_to_reply()135 if (icmp->type != ICMP_ECHO_REQUEST) in sandbox_eth_ping_req_to_reply()
Completed in 7 milliseconds