Home
last modified time | relevance | path

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

/u-boot/net/
A Dping.c81 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in ping_receive() local
86 switch (icmph->type) { in ping_receive()
108 icmph->type = ICMP_ECHO_REPLY; in ping_receive()
109 icmph->checksum = 0; in ping_receive()
110 icmph->checksum = compute_ip_checksum(icmph, len - IP_HDR_SIZE); in ping_receive()
A Dnet.c1050 struct icmp_hdr *icmph = (struct icmp_hdr *)&ip->udp_src; in receive_icmp() local
1052 switch (icmph->type) { in receive_icmp()
1054 if (icmph->code != ICMP_REDIR_HOST) in receive_icmp()
1057 &icmph->un.gateway); in receive_icmp()
1065 packet_icmp_handler(icmph->type, icmph->code, in receive_icmp()
1067 ntohs(ip->udp_src), icmph->un.data, in receive_icmp()

Completed in 5 milliseconds