tcp_seg::tcphdr is only used within LwIP.
 
Symbols
loading...
Files
loading...

tcp_seg::tcphdr field

Syntax

struct tcp_hdr *tcphdr;

References

LocationReferrerText
tcp_priv.h:273
struct tcp_hdr *tcphdr; /* the TCP header */
tcp_in.c:411tcp_input()
inseg.tcphdr = tcphdr;
tcp_in.c:1098tcp_free_acked_segments()
tcp_in.c:1099tcp_free_acked_segments()
tcp_in.c:1325tcp_receive()
tcp_in.c:1328tcp_receive()
} else if (TCP_SEQ_LEQ(pcb->rto_end, lwip_ntohl(pcb->unacked->tcphdr->seqno))) {
tcp_in.c:1443tcp_receive()
inseg.tcphdr->seqno = seqno = pcb->rcv_nxt;
tcp_in.c:1463tcp_receive()
tcp_in.c:1470tcp_receive()
if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
tcp_in.c:1473tcp_receive()
TCPH_FLAGS_SET(inseg.tcphdr, TCPH_FLAGS(inseg.tcphdr) & ~(unsigned int)TCP_FIN);
tcp_in.c:1478tcp_receive()
if (TCPH_FLAGS(inseg.tcphdr) & TCP_SYN) {
tcp_in.c:1482tcp_receive()
tcp_in.c:1564tcp_receive()
if (TCPH_FLAGS(inseg.tcphdr) & TCP_FIN) {
tcp_out.c:196tcp_create_segment()
seg->tcphdr = (struct tcp_hdr *)seg->p->payload;
tcp_out.c:197tcp_create_segment()
seg->tcphdr->src = lwip_htons(pcb->local_port);
tcp_out.c:198tcp_create_segment()
seg->tcphdr->dest = lwip_htons(pcb->remote_port);
tcp_out.c:199tcp_create_segment()
seg->tcphdr->seqno = lwip_htonl(seqno);
tcp_out.c:201tcp_create_segment()
TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags);
tcp_out.c:203tcp_create_segment()
seg->tcphdr->urgp = 0;
tcp_out.c:791tcp_write()
if (seg != NULL && seg->tcphdr != NULL && ((apiflags & TCP_WRITE_FLAG_MORE) == 0)) {
tcp_out.c:792tcp_write()
TCPH_SET_FLAG(seg->tcphdr, TCP_PSH);
tcp_out.c:901tcp_split_unsent_seg()
split_flags = TCPH_FLAGS(useg->tcphdr);
tcp_out.c:914tcp_split_unsent_seg()
seg = tcp_create_segment(pcb, p, remainder_flags, lwip_ntohl(useg->tcphdr->seqno) + split, optflags);
tcp_out.c:934tcp_split_unsent_seg()
TCPH_SET_FLAG(useg->tcphdr, split_flags);
tcp_out.c:1011tcp_send_fin()
if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) {
tcp_out.c:1013tcp_send_fin()
TCPH_SET_FLAG(last_unsent->tcphdr, TCP_FIN);
tcp_out.c:1090tcp_enqueue_flags()
LWIP_ASSERT("seg->tcphdr not aligned", ((mem_ptr_t)seg->tcphdr % LWIP_MIN(MEM_ALIGNMENT, 4)) == 0);
tcp_out.c:1305tcp_output()
if (lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len > wnd) {
tcp_out.c:1333tcp_output()
lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
tcp_out.c:1335tcp_output()
(TCPH_FLAGS(seg->tcphdr) & TCP_RST) == 0);
tcp_out.c:1357tcp_output()
TCPH_SET_FLAG(seg->tcphdr, TCP_ACK);
tcp_out.c:1373tcp_output()
snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg);
tcp_out.c:1378tcp_output()
if (TCP_TCPLEN(seg) > 0) {
tcp_out.c:1389tcp_output()
if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) {
tcp_out.c:1393tcp_output()
TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
tcp_out.c:1477tcp_output_segment()
tcp_out.c:1488tcp_output_segment()
tcp_out.c:1496tcp_output_segment()
opts = (u32_t *)(void *)(seg->tcphdr + 1);
tcp_out.c:1540tcp_output_segment()
pcb->rtseq = lwip_ntohl(seg->tcphdr->seqno);
tcp_out.c:1548tcp_output_segment()
len = (u16_t)((u8_t *)seg->tcphdr - (u8_t *)seg->p->payload);
tcp_out.c:1557tcp_output_segment()
seg->p->payload = seg->tcphdr;
tcp_out.c:1559tcp_output_segment()
seg->tcphdr->chksum = 0;
tcp_out.c:1564tcp_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:1671tcp_rexmit_rto_prepare()
pcb->rto_end = lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg);
tcp_out.c:1750tcp_rexmit()
TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
tcp_out.c:2153tcp_zero_window_probe()
is_fin = ((TCPH_FLAGS(seg->tcphdr) & TCP_FIN) != 0) && (seg->len == 0);
tcp_out.c:2157tcp_zero_window_probe()
p = tcp_output_alloc_header(pcb, optlen, len, seg->tcphdr->seqno);
tcp_out.c:2177tcp_zero_window_probe()
snd_nxt = lwip_ntohl(seg->tcphdr->seqno) + 1;

Data Use

Type of tcp_seg::tcphdr
tcp_seg::tcphdr
all items filtered out