Home
last modified time | relevance | path

Searched refs:icmph (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/net/
H A Dping.c84 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in ping_receive() local
88 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()
H A Dnet.c1013 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in receive_icmp() local
1015 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()