Home
last modified time | relevance | path

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

/lib/liblwip/src/core/ipv4/
Dinet_chksum.c340 u16_t chklen; in inet_chksum_pseudo_partial() local
348 chklen = q->len; in inet_chksum_pseudo_partial()
349 if (chklen > chksum_len) { in inet_chksum_pseudo_partial()
350 chklen = chksum_len; in inet_chksum_pseudo_partial()
352 acc += LWIP_CHKSUM(q->payload, chklen); in inet_chksum_pseudo_partial()
353 chksum_len -= chklen; in inet_chksum_pseudo_partial()
/lib/liblwip/src/core/
Dudp.c297 u16_t chklen = ntohs(udphdr->len); local
298 if (chklen < sizeof(struct udp_hdr)) {
299 if (chklen == 0) {
302 chklen = p->tot_len;
314 IP_PROTO_UDPLITE, p->tot_len, chklen) != 0) {
652 u16_t chklen, chklen_hdr; local
655 chklen_hdr = chklen = pcb->chksum_len_tx;
656 if ((chklen < sizeof(struct udp_hdr)) || (chklen > q->tot_len)) {
657 if (chklen != 0) {
658 … LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE pcb->chksum_len is illegal: %"U16_F"\n", chklen));
[all …]