Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/net/
H A Dsandbox.c121 struct icmp_hdr *icmpr; in sandbox_eth_ping_req_to_reply() local
144 icmpr = (struct icmp_hdr *)&ipr->udp_src; in sandbox_eth_ping_req_to_reply()
153 icmpr->type = ICMP_ECHO_REPLY; in sandbox_eth_ping_req_to_reply()
154 icmpr->checksum = 0; in sandbox_eth_ping_req_to_reply()
155 icmpr->checksum = compute_ip_checksum(icmpr, ICMP_HDR_SIZE); in sandbox_eth_ping_req_to_reply()
216 struct icmp_hdr *icmpr; in sandbox_eth_recv_ping_req() local
239 icmpr = (struct icmp_hdr *)&ipr->udp_src; in sandbox_eth_recv_ping_req()
241 icmpr->type = ICMP_ECHO_REQUEST; in sandbox_eth_recv_ping_req()
242 icmpr->code = 0; in sandbox_eth_recv_ping_req()
243 icmpr->checksum = 0; in sandbox_eth_recv_ping_req()
[all …]