Home
last modified time | relevance | path

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

/lk-master/external/lib/lwip/core/ipv6/
A Dicmp6.c50 struct icmp_echo_hdr *iecho; in icmp_input() local
71 iecho = p->payload; in icmp_input()
82 iecho->type = ICMP6_ER; in icmp_input()
84 if (iecho->chksum >= htons(0xffff - (ICMP6_ECHO << 8))) { in icmp_input()
85 iecho->chksum += htons(ICMP6_ECHO << 8) + 1; in icmp_input()
87 iecho->chksum += htons(ICMP6_ECHO << 8); in icmp_input()
/lk-master/external/lib/lwip/core/ipv4/
A Dicmp.c83 struct icmp_echo_hdr *iecho; in icmp_input() local
189 iecho = (struct icmp_echo_hdr *)p->payload; in icmp_input()
192 ICMPH_TYPE_SET(iecho, ICMP_ER); in icmp_input()
195 if (iecho->chksum >= PP_HTONS(0xffffU - (ICMP_ECHO << 8))) { in icmp_input()
196 iecho->chksum += PP_HTONS(ICMP_ECHO << 8) + 1; in icmp_input()
198 iecho->chksum += PP_HTONS(ICMP_ECHO << 8); in icmp_input()
201 iecho->chksum = 0; in icmp_input()

Completed in 4 milliseconds