LwIP
+ 0/28 examples
CodeScope will show references to
pbuf::tot_len
from the following samples and libraries:
Examples
STM32469I_EVAL
Applications
LwIP
LwIP_HTTP_Server_Netconn_RTOS
LwIP_TCP_Echo_Client
LwIP_TCP_Echo_Server
LwIP_TFTP_Server
LwIP_UDPTCP_Echo_Server_Netconn_RTOS
LwIP_UDP_Echo_Client
LwIP_UDP_Echo_Server
STM324x9I_EVAL
Applications
LwIP
LwIP_HTTP_Server_Netconn_RTOS
LwIP_HTTP_Server_Raw
LwIP_HTTP_Server_Socket_RTOS
LwIP_IAP
LwIP_TCP_Echo_Client
LwIP_TCP_Echo_Server
LwIP_TFTP_Server
LwIP_UDPTCP_Echo_Server_Netconn_RTOS
LwIP_UDP_Echo_Client
LwIP_UDP_Echo_Server
STM324xG_EVAL
Applications
LwIP
LwIP_HTTP_Server_Netconn_RTOS
LwIP_HTTP_Server_Raw
LwIP_HTTP_Server_Socket_RTOS
LwIP_IAP
LwIP_TCP_Echo_Client
LwIP_TCP_Echo_Server
LwIP_TFTP_Server
LwIP_UDPTCP_Echo_Server_Netconn_RTOS
LwIP_UDP_Echo_Client
LwIP_UDP_Echo_Server
STM32F429ZI-Nucleo
Applications
LwIP
LwIP_HTTP_Server_Netconn_RTOS
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
LwIP
pbuf::tot_len
pbuf::tot_len field
total length of this buffer and all next buffers in chain belonging to the same packet. For non-queue packet chains this is the invariant: p->tot_len == p->len + (p->next? p->next->tot_len: 0)
Syntax
from
pbuf.h:200
u16_t
tot_len
;
Examples
pbuf::tot_len
is referenced by
28 libraries and example projects
.
References
Location
Referrer
Text
pbuf.h:200
u16_t
tot_len
;
api_lib.c:649
netconn_recv_data()
len
=
(
(
struct
pbuf
*
)
buf
)
->
tot_len
;
api_lib.c:658
netconn_recv_data()
len
=
netbuf_len
(
(
struct
netbuf
*
)
buf
)
;
api_lib.c:737
netconn_recv_data_tcp()
u16_t
len
=
buf
?
buf
->
tot_len
:
1
;
api_msg.c:271
recv_udp()
len
=
p
->
tot_len
;
api_msg.c:314
recv_tcp()
tcp_recved
(
pcb
,
p
->
tot_len
)
;
api_msg.c:325
recv_tcp()
len
=
p
->
tot_len
;
dhcp.c:1541
dhcp_parse_reply()
options_idx_max
=
p
->
tot_len
;
dns.c:724
dns_skip_name()
if
(
offset
+
n
>=
p
->
tot_len
)
{
dns.c:1185
dns_recv()
if
(
p
->
tot_len
<
(
SIZEOF_DNS_HDR
+
SIZEOF_DNS_QUERY
)
)
{
dns.c:1268
dns_recv()
while
(
(
nanswers
>
0
)
&&
(
res_idx
<
p
->
tot_len
)
)
{
etharp.c:1009
etharp_query()
LWIP_ASSERT
(
"no packet queues allowed!"
,
(
p
->
len
!=
p
->
tot_len
)
||
(
p
->
next
==
0
)
)
;
httpd.c:1995
http_parse_request()
data_len
=
LWIP_MIN
(
hs
->
req
->
tot_len
,
LWIP_HTTPD_MAX_REQ_LENGTH
)
;
httpd.c:2003
http_parse_request()
if
(
p
->
len
!=
p
->
tot_len
)
{
httpd.c:2109
http_parse_request()
if
(
(
hs
->
req
->
tot_len
<=
LWIP_HTTPD_REQ_BUFSIZE
)
&&
httpd.c:2526
http_recv()
altcp_recved
(
pcb
,
p
->
tot_len
)
;
httpd.c:2544
http_recv()
altcp_recved
(
pcb
,
p
->
tot_len
)
;
icmp.c:141
icmp_input()
if
(
p
->
tot_len
<
sizeof
(
struct
icmp_echo_hdr
)
)
{
icmp.c:162
icmp_input()
u16_t
alloc_len
=
(
u16_t
)
(
p
->
tot_len
+
hlen
)
;
icmp.c:163
icmp_input()
if
(
alloc_len
<
p
->
tot_len
)
{
ip4.c:469
ip4_input()
if
(
iphdr_len
<
p
->
tot_len
)
{
ip4.c:474
ip4_input()
if
(
(
iphdr_hlen
>
p
->
len
)
||
(
iphdr_len
>
p
->
tot_len
)
||
(
iphdr_hlen
<
IP_HLEN
)
)
{
ip4.c:484
ip4_input()
if
(
iphdr_len
>
p
->
tot_len
)
{
ip4.c:925
ip4_output_if_src()
IPH_LEN_SET
(
iphdr
,
lwip_htons
(
p
->
tot_len
)
)
;
ip4.c:1001
ip4_output_if_src()
if
(
netif
->
mtu
&&
(
p
->
tot_len
>
netif
->
mtu
)
)
{
ip4_frag.c:772
ip4_frag()
left
=
(
u16_t
)
(
p
->
tot_len
-
IP_HLEN
)
;
netbuf.c:163
netbuf_ref()
buf
->
p
->
len
=
buf
->
p
->
tot_len
=
size
;
pbuf.c:183
pbuf_init_alloced_pbuf()
p
->
tot_len
=
tot_len
;
pbuf.c:411
pbuf_realloc()
if
(
new_len
>=
p
->
tot_len
)
{
pbuf.c:418
pbuf_realloc()
shrink
=
(
u16_t
)
(
p
->
tot_len
-
new_len
)
;
pbuf.c:428
pbuf_realloc()
q
->
tot_len
=
(
u16_t
)
(
q
->
tot_len
-
shrink
)
;
pbuf.c:449
pbuf_realloc()
q
->
tot_len
=
q
->
len
;
pbuf.c:489
pbuf_add_header_impl()
if
(
(
u16_t
)
(
increment_magnitude
+
p
->
tot_len
)
<
increment_magnitude
)
{
pbuf.c:524
pbuf_add_header_impl()
p
->
tot_len
=
(
u16_t
)
(
p
->
tot_len
+
increment_magnitude
)
;
pbuf.c:607
pbuf_remove_header()
p
->
tot_len
=
(
u16_t
)
(
p
->
tot_len
-
increment_magnitude
)
;
pbuf.c:863
pbuf_cat()
p
->
tot_len
=
(
u16_t
)
(
p
->
tot_len
+
t
->
tot_len
)
;
pbuf.c:866
pbuf_cat()
LWIP_ASSERT
(
"p->tot_len == p->len (of last pbuf in chain)"
,
p
->
tot_len
==
p
->
len
)
;
pbuf.c:869
pbuf_cat()
p
->
tot_len
=
(
u16_t
)
(
p
->
tot_len
+
t
->
tot_len
)
;
pbuf.c:921
pbuf_dechain()
LWIP_ASSERT
(
"p->tot_len == p->len + q->tot_len"
,
q
->
tot_len
==
p
->
tot_len
-
p
->
len
)
;
pbuf.c:923
pbuf_dechain()
q
->
tot_len
=
(
u16_t
)
(
p
->
tot_len
-
p
->
len
)
;
pbuf.c:927
pbuf_dechain()
p
->
tot_len
=
p
->
len
;
pbuf.c:938
pbuf_dechain()
LWIP_ASSERT
(
"p->tot_len == p->len"
,
p
->
tot_len
==
p
->
len
)
;
pbuf.c:970
pbuf_copy()
(
p_from
!=
NULL
)
&&
(
p_to
->
tot_len
>=
p_from
->
tot_len
)
)
,
return
ERR_ARG
;
)
;
pbuf.c:999
pbuf_copy()
if
(
(
p_from
!=
NULL
)
&&
(
p_from
->
len
==
p_from
->
tot_len
)
)
{
pbuf.c:1004
pbuf_copy()
if
(
(
p_to
!=
NULL
)
&&
(
p_to
->
len
==
p_to
->
tot_len
)
)
{
pbuf.c:1205
pbuf_take()
LWIP_ERROR
(
"pbuf_take: buf not large enough"
,
(
buf
->
tot_len
>=
len
)
,
return
ERR_MEM
;
)
;
pbuf.c:1207
pbuf_take()
if
(
(
buf
==
NULL
)
||
(
dataptr
==
NULL
)
||
(
buf
->
tot_len
<
len
)
)
{
pbuf.c:1246
pbuf_take_at()
if
(
(
q
!=
NULL
)
&&
(
q
->
tot_len
>=
target_offset
+
len
)
)
{
pbuf.c:1310
pbuf_clone()
q
=
pbuf_alloc
(
layer
,
p
->
tot_len
,
type
)
;
pbuf.c:1441
pbuf_memcmp()
if
(
p
->
tot_len
<
(
offset
+
n
)
)
{
pbuf.c:1479
pbuf_memfind()
u16_t
max_cmp_start
=
(
u16_t
)
(
p
->
tot_len
-
mem_len
)
;
pbuf.c:1480
pbuf_memfind()
if
(
p
->
tot_len
>=
mem_len
+
start_offset
)
{
pbuf.c:1506
pbuf_strstr()
if
(
(
substr
==
NULL
)
||
(
substr
[
0
]
==
0
)
||
(
p
->
tot_len
==
0xFFFF
)
)
{
sockets.c:972
lwip_recv_tcp()
if
(
recv_left
>
p
->
tot_len
)
{
sockets.c:973
lwip_recv_tcp()
copylen
=
p
->
tot_len
;
sockets.c:995
lwip_recv_tcp()
LWIP_ASSERT
(
"invalid copylen"
,
p
->
tot_len
>=
copylen
)
;
sockets.c:996
lwip_recv_tcp()
if
(
p
->
tot_len
-
copylen
>
0
)
{
sockets.c:1121
lwip_recvfrom_udp_raw()
buflen
=
buf
->
p
->
tot_len
;
sockets.c:1532
lwip_sendmsg()
p
->
len
=
p
->
tot_len
=
(
u16_t
)
msg
->
msg_iov
[
i
]
.
iov_len
;
sockets.c:1538
lwip_sendmsg()
if
(
chain_buf
.
p
->
tot_len
+
p
->
len
>
0xffff
)
{
sockets.c:1548
lwip_sendmsg()
size
=
netbuf_len
(
&
chain_buf
)
;
tcp.c:1691
tcp_recv_null()
tcp_recved
(
pcb
,
p
->
tot_len
)
;
tcp_in.c:176
tcp_input()
if
(
(
hdrlen_bytes
<
TCP_HLEN
)
||
(
hdrlen_bytes
>
p
->
tot_len
)
)
{
tcp_in.c:221
tcp_input()
p
->
tot_len
=
(
u16_t
)
(
p
->
tot_len
-
opt2len
)
;
tcp_in.c:224
tcp_input()
LWIP_ASSERT
(
"p->tot_len == p->next->tot_len"
,
p
->
tot_len
==
p
->
next
->
tot_len
)
;
tcp_in.c:235
tcp_input()
tcplen
=
p
->
tot_len
;
tcp_in.c:238
tcp_input()
if
(
tcplen
<
p
->
tot_len
)
{
tcp_in.c:409
tcp_input()
inseg
.
len
=
p
->
tot_len
;
tcp_in.c:1431
tcp_receive()
LWIP_ASSERT
(
"pbuf too short!"
,
(
(
(
s32_t
)
inseg
.
p
->
tot_len
)
>=
off
)
)
;
tcp_in.c:1433
tcp_receive()
new_tot_len
=
(
u16_t
)
(
inseg
.
p
->
tot_len
-
off
)
;
tcp_in.c:1437
tcp_receive()
p
->
tot_len
=
new_tot_len
;
tcp_in.c:1557
tcp_receive()
if
(
inseg
.
p
->
tot_len
>
0
)
{
tcp_out.c:176
tcp_create_segment()
LWIP_ASSERT
(
"p->tot_len >= optlen"
,
p
->
tot_len
>=
optlen
)
;
tcp_out.c:177
tcp_create_segment()
seg
->
len
=
p
->
tot_len
-
optlen
;
tcp_out.c:270
tcp_pbuf_prealloc()
p
->
len
=
p
->
tot_len
=
length
;
tcp_out.c:715
tcp_write()
p
->
tot_len
+=
oversize_used
;
tcp_out.c:739
tcp_write()
last_unsent
->
len
+=
concat_p
->
tot_len
;
tcp_out.c:745
tcp_write()
p
->
tot_len
+=
extendlen
;
tcp_out.c:747
tcp_write()
p
->
tot_len
+=
extendlen
;
tcp_out.c:885
tcp_split_unsent_seg()
offset
=
useg
->
p
->
tot_len
-
useg
->
len
+
split
;
tcp_out.c:932
tcp_split_unsent_seg()
pbuf_realloc
(
useg
->
p
,
useg
->
p
->
tot_len
-
remainder
)
;
tcp_out.c:1555
tcp_output_segment()
seg
->
p
->
tot_len
-=
len
;
tcp_out.c:2173
tcp_zero_window_probe()
pbuf_copy_partial
(
seg
->
p
,
d
,
1
,
seg
->
p
->
tot_len
-
seg
->
len
)
;
udp.c:756
udp_sendto_if_src()
if
(
(
u16_t
)
(
p
->
tot_len
+
UDP_HLEN
)
<
p
->
tot_len
)
{
udp.c:768
udp_sendto_if_src()
if
(
p
->
tot_len
!=
0
)
{
udp.c:850
udp_sendto_if_src()
udphdr
->
len
=
lwip_htons
(
q
->
tot_len
)
;
Data Use
Functions writing
pbuf::tot_len
Functions reading
pbuf::tot_len
netbuf_ref()
lwip_sendmsg()
pbuf_init_alloced_pbuf()
pbuf_realloc()
pbuf_add_header_impl()
pbuf_remove_header()
pbuf_cat()
pbuf_dechain()
tcp_input()
tcp_receive()
tcp_pbuf_prealloc()
tcp_write()
tcp_output_segment()
all items filtered out
pbuf::tot_len
netconn_recv_data()
netconn_recv_data_tcp()
recv_udp()
recv_tcp()
lwip_recv_tcp()
lwip_recvfrom_udp_raw()
lwip_sendmsg()
dns_skip_name()
dns_recv()
pbuf_realloc()
pbuf_add_header_impl()
pbuf_remove_header()
pbuf_cat()
pbuf_dechain()
pbuf_copy()
pbuf_take()
pbuf_take_at()
pbuf_clone()
pbuf_memcmp()
pbuf_memfind()
pbuf_strstr()
tcp_recv_null()
tcp_input()
tcp_receive()
tcp_create_segment()
tcp_write()
tcp_split_unsent_seg()
tcp_output_segment()
tcp_zero_window_probe()
udp_sendto_if_src()
dhcp_parse_reply()
etharp_query()
icmp_input()
ip4_input()
ip4_output_if_src()
ip4_frag()
http_parse_request()
http_recv()
all items filtered out
Type of
pbuf::tot_len
pbuf::tot_len
u16_t
all items filtered out