Symbols
loading...
Files
loading...

pbuf::len field

length of this buffer

Syntax

u16_t len;

Examples

pbuf::len is referenced by 35 libraries and example projects.

References

LocationReferrerText
pbuf.h:203
u16_t len;
dhcp.c:1527dhcp_parse_reply()
if (p->len < DHCP_SNAME_OFS) {
dhcp.c:1544dhcp_parse_reply()
while ((q != NULL) && (options_idx >= q->len)) {
dhcp.c:1545dhcp_parse_reply()
options_idx = (u16_t)(options_idx - q->len);
dhcp.c:1546dhcp_parse_reply()
options_idx_max = (u16_t)(options_idx_max - q->len);
dhcp.c:1567dhcp_parse_reply()
if ((offset + 1) < q->len) {
dhcp.c:1688dhcp_parse_reply()
if (offset >= q->len) {
dhcp.c:1689dhcp_parse_reply()
offset = (u16_t)(offset - q->len);
dhcp.c:1690dhcp_parse_reply()
offset_max = (u16_t)(offset_max - q->len);
dhcp.c:1781dhcp_recv()
if (p->len < DHCP_MIN_REPLY_LEN) {
dhcp.c:1906dhcp_create_msg()
(p_out->len >= sizeof(struct dhcp_msg)));
etharp.c:1009etharp_query()
LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == 0));
etharp.c:1123etharp_raw()
(p->len >= SIZEOF_ETHARP_HDR));
ethernet.c:91ethernet_input()
if (p->len <= SIZEOF_ETH_HDR) {
httpd.c:2002http_parse_request()
data_len = p->len;
httpd.c:2003http_parse_request()
if (p->len != p->tot_len) {
icmp.c:100icmp_input()
if (p->len < sizeof(u16_t) * 2) {
icmp.c:173icmp_input()
if (r->len < hlen + sizeof(struct icmp_echo_hdr)) {
icmp.c:361icmp_send_response()
(q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE)));
inet_chksum.c:269inet_cksum_pseudo_base()
acc += LWIP_CHKSUM(q->payload, q->len);
inet_chksum.c:274inet_cksum_pseudo_base()
if (q->len % 2 != 0) {
inet_chksum.c:410inet_cksum_pseudo_partial_base()
chklen = q->len;
inet_chksum.c:420inet_cksum_pseudo_partial_base()
if (q->len % 2 != 0) {
inet_chksum.c:576inet_chksum_pbuf()
acc += LWIP_CHKSUM(q->payload, q->len);
inet_chksum.c:578inet_chksum_pbuf()
if (q->len % 2 != 0) {
ip4.c:474ip4_input()
if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) {
ip4.c:479ip4_input()
if (iphdr_hlen > p->len) {
ip4.c:905ip4_output_if_src()
(p->len >= sizeof(struct ip_hdr)));
ip4.c:967ip4_output_if_src()
if (p->len < IP_HLEN) {
ip4_frag.c:764ip4_frag()
LWIP_ERROR("ip4_frag(): pbuf too short", p->len >= IP_HLEN, return ERR_VAL);
ip4_frag.c:805ip4_frag()
(rambuf->len >= (IP_HLEN)));
ip4_frag.c:812ip4_frag()
u16_t plen = (u16_t)(p->len - poff);
ip4_frag.c:813ip4_frag()
LWIP_ASSERT("p->len >= poff", p->len >= poff);
netbuf.c:115netbuf_alloc()
(buf->p->len >= size));
netbuf.c:163netbuf_ref()
buf->p->len = buf->p->tot_len = size;
netbuf.c:206netbuf_data()
*len = buf->ptr->len;
pbuf.c:184pbuf_init_alloced_pbuf()
p->len = len;
pbuf.c:424pbuf_realloc()
while (rem_len > q->len) {
pbuf.c:426pbuf_realloc()
rem_len = (u16_t)(rem_len - q->len);
pbuf.c:438pbuf_realloc()
pbuf.c:448pbuf_realloc()
q->len = rem_len;
pbuf.c:449pbuf_realloc()
q->tot_len = q->len;
pbuf.c:523pbuf_add_header_impl()
p->len = (u16_t)(p->len + increment_magnitude);
pbuf.c:597pbuf_remove_header()
LWIP_ERROR("increment_magnitude <= p->len", (increment_magnitude <= p->len), return 1;);
pbuf.c:606pbuf_remove_header()
p->len = (u16_t)(p->len - increment_magnitude);
pbuf.c:676pbuf_free_header()
if (free_left >= p->len) {
pbuf.c:678pbuf_free_header()
free_left = (u16_t)(free_left - p->len);
pbuf.c:866pbuf_cat()
LWIP_ASSERT("p->tot_len == p->len (of last pbuf in chain)", p->tot_len == p->len);
pbuf.c:921pbuf_dechain()
LWIP_ASSERT("p->tot_len == p->len + q->tot_len", q->tot_len == p->tot_len - p->len);
pbuf.c:923pbuf_dechain()
q->tot_len = (u16_t)(p->tot_len - p->len);
pbuf.c:927pbuf_dechain()
p->tot_len = p->len;
pbuf.c:938pbuf_dechain()
LWIP_ASSERT("p->tot_len == p->len", p->tot_len == p->len);
pbuf.c:975pbuf_copy()
if ((p_to->len - offset_to) >= (p_from->len - offset_from)) {
pbuf.c:977pbuf_copy()
len = p_from->len - offset_from;
pbuf.c:980pbuf_copy()
len = p_to->len - offset_to;
pbuf.c:985pbuf_copy()
LWIP_ASSERT("offset_to <= p_to->len", offset_to <= p_to->len);
pbuf.c:986pbuf_copy()
LWIP_ASSERT("offset_from <= p_from->len", offset_from <= p_from->len);
pbuf.c:987pbuf_copy()
if (offset_from >= p_from->len) {
pbuf.c:992pbuf_copy()
if (offset_to == p_to->len) {
pbuf.c:999pbuf_copy()
if ((p_from != NULL) && (p_from->len == p_from->tot_len)) {
pbuf.c:1004pbuf_copy()
if ((p_to != NULL) && (p_to->len == p_to->tot_len)) {
pbuf.c:1039pbuf_copy_partial()
if ((offset != 0) && (offset >= p->len)) {
pbuf.c:1041pbuf_copy_partial()
offset = (u16_t)(offset - p->len);
pbuf.c:1044pbuf_copy_partial()
buf_copy_len = (u16_t)(p->len - offset);
pbuf.c:1085pbuf_get_contiguous()
if (q->len >= (out_offset + len)) {
pbuf.c:1158pbuf_skip_const()
while ((q != NULL) && (q->len <= offset_left)) {
pbuf.c:1159pbuf_skip_const()
offset_left = (u16_t)(offset_left - q->len);
pbuf.c:1215pbuf_take()
if (buf_copy_len > p->len) {
pbuf.c:1217pbuf_take()
buf_copy_len = p->len;
pbuf.c:1251pbuf_take_at()
LWIP_ASSERT("check pbuf_skip result", target_offset < q->len);
pbuf.c:1252pbuf_take_at()
first_copy_len = (u16_t)LWIP_MIN(q->len - target_offset, len);
pbuf.c:1395pbuf_try_get_at()
if ((q != NULL) && (q->len > q_idx)) {
pbuf.c:1417pbuf_put_at()
if ((q != NULL) && (q->len > q_idx)) {
pbuf.c:1446pbuf_memcmp()
while ((q != NULL) && (q->len <= start)) {
pbuf.c:1447pbuf_memcmp()
start = (u16_t)(start - q->len);
sockets.c:1532lwip_sendmsg()
p->len = p->tot_len = (u16_t)msg->msg_iov[i].iov_len;
sockets.c:1538lwip_sendmsg()
if (chain_buf.p->tot_len + p->len > 0xffff) {
tcp_in.c:145tcp_input()
if (p->len < TCP_HLEN) {
tcp_in.c:186tcp_input()
if (p->len >= hdrlen_bytes) {
tcp_in.c:200tcp_input()
tcp_in.c:208tcp_input()
if (opt2len > p->next->len) {
tcp_in.c:223tcp_input()
LWIP_ASSERT("p->len == 0", p->len == 0);
tcp_in.c:1434tcp_receive()
while (p->len < off) {
tcp_in.c:1435tcp_receive()
off -= p->len;
tcp_in.c:1438tcp_receive()
p->len = 0;
tcp_out.c:268tcp_pbuf_prealloc()
*oversize = p->len - length;
tcp_out.c:270tcp_pbuf_prealloc()
p->len = p->tot_len = length;
tcp_out.c:560tcp_write()
(const u8_t *)p->payload + p->len == (const u8_t *)arg) {
tcp_out.c:615tcp_write()
(p->len >= seglen));
tcp_out.c:717tcp_write()
TCP_DATA_COPY((char *)p->payload + p->len, arg, oversize_used, last_unsent);
tcp_out.c:718tcp_write()
p->len += oversize_used;
tcp_out.c:748tcp_write()
p->len += extendlen;
tcp_out.c:1082tcp_enqueue_flags()
(p->len >= optlen));
tcp_out.c:1554tcp_output_segment()
seg->p->len -= len;
tcp_out.c:1828tcp_output_alloc_header_common()
(p->len >= TCP_HLEN + optlen));
udp.c:215udp_input()
if (p->len < UDP_HLEN) {
udp.c:782udp_sendto_if_src()
(q->len >= sizeof(struct udp_hdr)));