Searched refs:icmp (Results 1 – 2 of 2) sorted by relevance
26 struct icmp_hdr *icmp = (struct icmp_hdr *)(pkt + IP_HDR_SIZE); in set_icmp_header() local34 icmp->type = ICMP_ECHO_REQUEST; in set_icmp_header()35 icmp->code = 0; in set_icmp_header()36 icmp->checksum = 0; in set_icmp_header()37 icmp->un.echo.id = 0; in set_icmp_header()38 icmp->un.echo.sequence = htons(ping_seq_number++); in set_icmp_header()39 icmp->checksum = compute_ip_checksum(icmp, ICMP_HDR_SIZE); in set_icmp_header()
117 struct icmp_hdr *icmp = (struct icmp_hdr *)&ip->udp_src; in sb_eth_send() local119 if (icmp->type == ICMP_ECHO_REQUEST) { in sb_eth_send()