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
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
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()
244 icmpr->un.echo.id = 0; in sandbox_eth_recv_ping_req()
245 icmpr->un.echo.sequence = htons(1); in sandbox_eth_recv_ping_req()
[all …]