Home
last modified time | relevance | path

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

/hal_espressif-3.4.0/components/lwip/apps/ping/
Dping.c115 ping_prepare_echo( struct icmp_echo_hdr *iecho, u16_t len) in ping_prepare_echo() argument
120 ICMPH_TYPE_SET(iecho, ICMP_ECHO); in ping_prepare_echo()
121 ICMPH_CODE_SET(iecho, 0); in ping_prepare_echo()
122 iecho->chksum = 0; in ping_prepare_echo()
123 iecho->id = PING_ID; in ping_prepare_echo()
124 iecho->seqno = htons(++ping_seq_num); in ping_prepare_echo()
128 ((char*)iecho)[sizeof(struct icmp_echo_hdr) + i] = (char)i; in ping_prepare_echo()
131 iecho->chksum = inet_chksum(iecho, len); in ping_prepare_echo()
138 struct icmp_echo_hdr *iecho; in ping_recv() local
148 iecho = (struct icmp_echo_hdr *)p->payload; in ping_recv()
[all …]
Dping_sock.c130 struct icmp_echo_hdr *iecho = (struct icmp_echo_hdr *)(buf + (IPH_HL(iphdr) * 4)); in esp_ping_receive() local
131 if ((iecho->id == ep->packet_hdr->id) && (iecho->seqno == ep->packet_hdr->seqno)) { in esp_ping_receive()