LwIP
tcp_seg::tcphdr
is only used within LwIP.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
CodeScope
STM32 Libraries and Samples
LwIP
tcp_seg::tcphdr
tcp_seg::tcphdr field
Syntax
from
tcp_priv.h:273
struct
tcp_hdr
*
tcphdr
;
References
Location
Referrer
Text
tcp_priv.h:273
struct
tcp_hdr
*
tcphdr
;
/* the TCP header */
tcp_in.c:411
tcp_input()
inseg
.
tcphdr
=
tcphdr
;
tcp_in.c:1098
tcp_free_acked_segments()
TCP_SEQ_LEQ
(
lwip_ntohl
(
seg_list
->
tcphdr
->
seqno
)
+
tcp_in.c:1099
tcp_free_acked_segments()
TCP_TCPLEN
(
seg_list
)
,
ackno
)
)
{
tcp_in.c:1325
tcp_receive()
(
TCP_SEQ_LEQ
(
pcb
->
rto_end
,
lwip_ntohl
(
pcb
->
unsent
->
tcphdr
->
seqno
)
)
)
)
{
tcp_in.c:1328
tcp_receive()
}
else
if
(
TCP_SEQ_LEQ
(
pcb
->
rto_end
,
lwip_ntohl
(
pcb
->
unacked
->
tcphdr
->
seqno
)
)
)
{
tcp_in.c:1443
tcp_receive()
inseg
.
tcphdr
->
seqno
=
seqno
=
pcb
->
rcv_nxt
;
tcp_in.c:1463
tcp_receive()
tcplen
=
TCP_TCPLEN
(
&
inseg
)
;
tcp_in.c:1470
tcp_receive()
if
(
TCPH_FLAGS
(
inseg
.
tcphdr
)
&
TCP_FIN
)
{
tcp_in.c:1473
tcp_receive()
TCPH_FLAGS_SET
(
inseg
.
tcphdr
,
TCPH_FLAGS
(
inseg
.
tcphdr
)
&
~
(
unsigned
int
)
TCP_FIN
)
;
tcp_in.c:1478
tcp_receive()
if
(
TCPH_FLAGS
(
inseg
.
tcphdr
)
&
TCP_SYN
)
{
tcp_in.c:1482
tcp_receive()
tcplen
=
TCP_TCPLEN
(
&
inseg
)
;
tcp_in.c:1564
tcp_receive()
if
(
TCPH_FLAGS
(
inseg
.
tcphdr
)
&
TCP_FIN
)
{
tcp_out.c:196
tcp_create_segment()
seg
->
tcphdr
=
(
struct
tcp_hdr
*
)
seg
->
p
->
payload
;
tcp_out.c:197
tcp_create_segment()
seg
->
tcphdr
->
src
=
lwip_htons
(
pcb
->
local_port
)
;
tcp_out.c:198
tcp_create_segment()
seg
->
tcphdr
->
dest
=
lwip_htons
(
pcb
->
remote_port
)
;
tcp_out.c:199
tcp_create_segment()
seg
->
tcphdr
->
seqno
=
lwip_htonl
(
seqno
)
;
tcp_out.c:201
tcp_create_segment()
TCPH_HDRLEN_FLAGS_SET
(
seg
->
tcphdr
,
(
5
+
optlen
/
4
)
,
hdrflags
)
;
tcp_out.c:203
tcp_create_segment()
seg
->
tcphdr
->
urgp
=
0
;
tcp_out.c:791
tcp_write()
if
(
seg
!=
NULL
&&
seg
->
tcphdr
!=
NULL
&&
(
(
apiflags
&
TCP_WRITE_FLAG_MORE
)
==
0
)
)
{
tcp_out.c:792
tcp_write()
TCPH_SET_FLAG
(
seg
->
tcphdr
,
TCP_PSH
)
;
tcp_out.c:901
tcp_split_unsent_seg()
split_flags
=
TCPH_FLAGS
(
useg
->
tcphdr
)
;
tcp_out.c:914
tcp_split_unsent_seg()
seg
=
tcp_create_segment
(
pcb
,
p
,
remainder_flags
,
lwip_ntohl
(
useg
->
tcphdr
->
seqno
)
+
split
,
optflags
)
;
tcp_out.c:934
tcp_split_unsent_seg()
TCPH_SET_FLAG
(
useg
->
tcphdr
,
split_flags
)
;
tcp_out.c:1011
tcp_send_fin()
if
(
(
TCPH_FLAGS
(
last_unsent
->
tcphdr
)
&
(
TCP_SYN
|
TCP_FIN
|
TCP_RST
)
)
==
0
)
{
tcp_out.c:1013
tcp_send_fin()
TCPH_SET_FLAG
(
last_unsent
->
tcphdr
,
TCP_FIN
)
;
tcp_out.c:1090
tcp_enqueue_flags()
LWIP_ASSERT
(
"seg->tcphdr not aligned"
,
(
(
mem_ptr_t
)
seg
->
tcphdr
%
LWIP_MIN
(
MEM_ALIGNMENT
,
4
)
)
==
0
)
;
tcp_out.c:1305
tcp_output()
if
(
lwip_ntohl
(
seg
->
tcphdr
->
seqno
)
-
pcb
->
lastack
+
seg
->
len
>
wnd
)
{
tcp_out.c:1333
tcp_output()
lwip_ntohl
(
seg
->
tcphdr
->
seqno
)
-
pcb
->
lastack
+
seg
->
len
<=
wnd
)
{
tcp_out.c:1335
tcp_output()
(
TCPH_FLAGS
(
seg
->
tcphdr
)
&
TCP_RST
)
==
0
)
;
tcp_out.c:1357
tcp_output()
TCPH_SET_FLAG
(
seg
->
tcphdr
,
TCP_ACK
)
;
tcp_out.c:1373
tcp_output()
snd_nxt
=
lwip_ntohl
(
seg
->
tcphdr
->
seqno
)
+
TCP_TCPLEN
(
seg
)
;
tcp_out.c:1378
tcp_output()
if
(
TCP_TCPLEN
(
seg
)
>
0
)
{
tcp_out.c:1389
tcp_output()
if
(
TCP_SEQ_LT
(
lwip_ntohl
(
seg
->
tcphdr
->
seqno
)
,
lwip_ntohl
(
useg
->
tcphdr
->
seqno
)
)
)
{
tcp_out.c:1393
tcp_output()
TCP_SEQ_LT
(
lwip_ntohl
(
(
*
cur_seg
)
->
tcphdr
->
seqno
)
,
lwip_ntohl
(
seg
->
tcphdr
->
seqno
)
)
)
{
tcp_out.c:1477
tcp_output_segment()
seg
->
tcphdr
->
ackno
=
lwip_htonl
(
pcb
->
rcv_nxt
)
;
tcp_out.c:1488
tcp_output_segment()
seg
->
tcphdr
->
wnd
=
lwip_htons
(
TCPWND_MIN16
(
RCV_WND_SCALE
(
pcb
,
pcb
->
rcv_ann_wnd
)
)
)
;
tcp_out.c:1496
tcp_output_segment()
opts
=
(
u32_t
*
)
(
void
*
)
(
seg
->
tcphdr
+
1
)
;
tcp_out.c:1540
tcp_output_segment()
pcb
->
rtseq
=
lwip_ntohl
(
seg
->
tcphdr
->
seqno
)
;
tcp_out.c:1548
tcp_output_segment()
len
=
(
u16_t
)
(
(
u8_t
*
)
seg
->
tcphdr
-
(
u8_t
*
)
seg
->
p
->
payload
)
;
tcp_out.c:1557
tcp_output_segment()
seg
->
p
->
payload
=
seg
->
tcphdr
;
tcp_out.c:1559
tcp_output_segment()
seg
->
tcphdr
->
chksum
=
0
;
tcp_out.c:1564
tcp_output_segment()
LWIP_ASSERT
(
"options not filled"
,
(
u8_t
*
)
opts
==
(
(
u8_t
*
)
(
seg
->
tcphdr
+
1
)
)
+
LWIP_TCP_OPT_LENGTH_SEGMENT
(
seg
->
flags
,
pcb
)
)
;
tcp_out.c:1671
tcp_rexmit_rto_prepare()
pcb
->
rto_end
=
lwip_ntohl
(
seg
->
tcphdr
->
seqno
)
+
TCP_TCPLEN
(
seg
)
;
tcp_out.c:1750
tcp_rexmit()
TCP_SEQ_LT
(
lwip_ntohl
(
(
*
cur_seg
)
->
tcphdr
->
seqno
)
,
lwip_ntohl
(
seg
->
tcphdr
->
seqno
)
)
)
{
tcp_out.c:2153
tcp_zero_window_probe()
is_fin
=
(
(
TCPH_FLAGS
(
seg
->
tcphdr
)
&
TCP_FIN
)
!=
0
)
&&
(
seg
->
len
==
0
)
;
tcp_out.c:2157
tcp_zero_window_probe()
p
=
tcp_output_alloc_header
(
pcb
,
optlen
,
len
,
seg
->
tcphdr
->
seqno
)
;
tcp_out.c:2177
tcp_zero_window_probe()
snd_nxt
=
lwip_ntohl
(
seg
->
tcphdr
->
seqno
)
+
1
;
Data Use
Functions writing
tcp_seg::tcphdr
Functions reading
tcp_seg::tcphdr
tcp_input()
tcp_create_segment()
all items filtered out
tcp_seg::tcphdr
tcp_free_acked_segments()
tcp_receive()
tcp_create_segment()
tcp_write()
tcp_split_unsent_seg()
tcp_send_fin()
tcp_enqueue_flags()
tcp_output()
tcp_output_segment()
tcp_rexmit_rto_prepare()
tcp_rexmit()
tcp_zero_window_probe()
all items filtered out
Type of
tcp_seg::tcphdr
tcp_seg::tcphdr
tcp_hdr
all items filtered out