Lines Matching refs:tot_len
169 if (p->tot_len < (IPH_HL(iphdr) * 4 + UDP_HLEN) || pbuf_header(p, -(s16_t)(IPH_HL(iphdr) * 4))) {
172 ("udp_input: short UDP datagram (%"U16_F" bytes) discarded\n", p->tot_len));
185 LWIP_DEBUGF(UDP_DEBUG, ("udp_input: received datagram of length %"U16_F"\n", p->tot_len));
302 chklen = p->tot_len;
314 IP_PROTO_UDPLITE, p->tot_len, chklen) != 0) {
330 IP_PROTO_UDP, p->tot_len) != 0) {
381 q = pbuf_alloc(PBUF_RAW, p->tot_len, PBUF_RAM);
596 if (p->tot_len != 0) {
647 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: sending datagram of length %"U16_F"\n", q->tot_len));
653 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP LITE packet length %"U16_F"\n", q->tot_len));
656 if ((chklen < sizeof(struct udp_hdr)) || (chklen > q->tot_len)) {
667 chklen = q->tot_len;
673 IP_PROTO_UDPLITE, q->tot_len,
698 LWIP_DEBUGF(UDP_DEBUG, ("udp_send: UDP packet length %"U16_F"\n", q->tot_len));
699 udphdr->len = htons(q->tot_len);
708 q->tot_len, UDP_HLEN);
714 udpchksum = inet_chksum_pseudo(q, src_ip, dst_ip, IP_PROTO_UDP, q->tot_len);