Searched refs:icmph (Results 1 – 2 of 2) sorted by relevance
84 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in ping_receive() local88 switch (icmph->type) { in ping_receive()107 icmph->type = ICMP_ECHO_REPLY; in ping_receive()108 icmph->checksum = 0; in ping_receive()109 icmph->checksum = compute_ip_checksum(icmph, len - IP_HDR_SIZE); in ping_receive()
1013 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in receive_icmp() local1015 switch (icmph->type) { in receive_icmp()1017 if (icmph->code != ICMP_REDIR_HOST) in receive_icmp()1020 &icmph->un.gateway); in receive_icmp()1028 packet_icmp_handler(icmph->type, icmph->code, in receive_icmp()1030 ntohs(ip->udp_src), icmph->un.data, in receive_icmp()