Lines Matching refs:tot_len
462 remaining_len = p->tot_len; in lowpan6_frag()
480 buffer[ieee_header_len] = 0xc0 | (((p->tot_len + lowpan6_header_len) >> 8) & 0x7); in lowpan6_frag()
481 buffer[ieee_header_len + 1] = (p->tot_len + lowpan6_header_len) & 0xff; in lowpan6_frag()
502 … p_frag->len = p_frag->tot_len = ieee_header_len + 4 + frag_len + 2; /* add 2 dummy bytes for crc*/ in lowpan6_frag()
505 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); in lowpan6_frag()
522 pbuf_copy_partial(p, buffer + ieee_header_len + 5, frag_len, p->tot_len - remaining_len); in lowpan6_frag()
534 p_frag->len = p_frag->tot_len = frag_len + 5 + ieee_header_len + 2; in lowpan6_frag()
537 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); in lowpan6_frag()
557 p_frag->len = p_frag->tot_len = frag_len + lowpan6_header_len + ieee_header_len + 2; in lowpan6_frag()
560 MIB2_STATS_NETIF_ADD(netif, ifoutoctets, p_frag->tot_len); in lowpan6_frag()
949 udphdr->len = lwip_htons(p->tot_len - lowpan6_offset + UDP_HLEN); in lowpan6_decompress()
964 q->len = q->tot_len = ip6_offset + p->len; in lowpan6_decompress()
972 IP6H_PLEN_SET(ip6hdr, q->tot_len - IP6_HLEN); in lowpan6_decompress()
987 MIB2_STATS_NETIF_ADD(netif, ifinoctets, p->tot_len); in lowpan6_input()
1100 if (lrh->pbuf->tot_len < datagram_offset) { in lowpan6_input()
1104 } else if (lrh->pbuf->tot_len > datagram_offset) { in lowpan6_input()
1117 if (lrh->pbuf->tot_len >= lrh->datagram_size) { in lowpan6_input()