Home
last modified time | relevance | path

Searched refs:icmp (Results 1 – 3 of 3) sorted by relevance

/u-boot/net/
A Dping.c27 struct icmp_hdr *icmp = (struct icmp_hdr *)(pkt + IP_HDR_SIZE); in set_icmp_header() local
31 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()
/u-boot/test/dm/
A Deth.c356 struct icmp_hdr *icmp; in sb_check_ping_reply() local
368 icmp = (struct icmp_hdr *)&ip->udp_src; in sb_check_ping_reply()
370 if (icmp->type != ICMP_ECHO_REPLY) in sb_check_ping_reply()
/u-boot/drivers/net/
A Dsandbox.c120 struct icmp_hdr *icmp; in sandbox_eth_ping_req_to_reply() local
133 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