Home
last modified time | relevance | path

Searched refs:tcphdr (Results 1 – 18 of 18) sorted by relevance

/third_party/lwip/src/core/
Dtcp_in.c75 static struct tcp_hdr *tcphdr; variable
138 tcphdr = (struct tcp_hdr *)p->payload;
141 tcp_debug_print(tcphdr);
167 tcp_debug_print(tcphdr);
175 hdrlen_bytes = TCPH_HDRLEN_BYTES(tcphdr);
228 tcphdr->src = lwip_ntohs(tcphdr->src);
229 tcphdr->dest = lwip_ntohs(tcphdr->dest);
230 seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno);
231 ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno);
232 tcphdr->wnd = lwip_ntohs(tcphdr->wnd);
[all …]
Dtcp_out.c196 seg->tcphdr = (struct tcp_hdr *)seg->p->payload; in tcp_create_segment()
197 seg->tcphdr->src = lwip_htons(pcb->local_port); in tcp_create_segment()
198 seg->tcphdr->dest = lwip_htons(pcb->remote_port); in tcp_create_segment()
199 seg->tcphdr->seqno = lwip_htonl(seqno); in tcp_create_segment()
201 TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags); in tcp_create_segment()
203 seg->tcphdr->urgp = 0; in tcp_create_segment()
690 lwip_ntohl(seg->tcphdr->seqno), in tcp_write()
691 lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg))); in tcp_write()
791 if (seg != NULL && seg->tcphdr != NULL && ((apiflags & TCP_WRITE_FLAG_MORE) == 0)) { in tcp_write()
792 TCPH_SET_FLAG(seg->tcphdr, TCP_PSH); in tcp_write()
[all …]
Dtcp.c2409 tcp_debug_print(struct tcp_hdr *tcphdr) in tcp_debug_print() argument
2414 lwip_ntohs(tcphdr->src), lwip_ntohs(tcphdr->dest))); in tcp_debug_print()
2417 lwip_ntohl(tcphdr->seqno))); in tcp_debug_print()
2420 lwip_ntohl(tcphdr->ackno))); in tcp_debug_print()
2423 TCPH_HDRLEN(tcphdr), in tcp_debug_print()
2424 (u16_t)(TCPH_FLAGS(tcphdr) >> 5 & 1), in tcp_debug_print()
2425 (u16_t)(TCPH_FLAGS(tcphdr) >> 4 & 1), in tcp_debug_print()
2426 (u16_t)(TCPH_FLAGS(tcphdr) >> 3 & 1), in tcp_debug_print()
2427 (u16_t)(TCPH_FLAGS(tcphdr) >> 2 & 1), in tcp_debug_print()
2428 (u16_t)(TCPH_FLAGS(tcphdr) >> 1 & 1), in tcp_debug_print()
[all …]
/third_party/lwip/test/unit/tcp/
Dtcp_helper.c53 struct tcp_hdr* tcphdr; in tcp_create_segment_wnd() local
82 tcphdr = (struct tcp_hdr*)p->payload; in tcp_create_segment_wnd()
83 tcphdr->src = htons(src_port); in tcp_create_segment_wnd()
84 tcphdr->dest = htons(dst_port); in tcp_create_segment_wnd()
85 tcphdr->seqno = htonl(seqno); in tcp_create_segment_wnd()
86 tcphdr->ackno = htonl(ackno); in tcp_create_segment_wnd()
87 TCPH_HDRLEN_SET(tcphdr, sizeof(struct tcp_hdr)/4); in tcp_create_segment_wnd()
88 TCPH_FLAGS_SET(tcphdr, headerflags); in tcp_create_segment_wnd()
89 tcphdr->wnd = htons(wnd); in tcp_create_segment_wnd()
102 tcphdr->chksum = ip_chksum_pseudo(p, in tcp_create_segment_wnd()
Dtest_tcp.c367 struct tcp_hdr tcphdr; in START_TEST() local
368 ret = pbuf_copy_partial(txcounters.tx_packets, &tcphdr, 20, 20); in START_TEST()
370 EXPECT(tcphdr.dest == PP_HTONS(TEST_REMOTE_PORT)); in START_TEST()
371 EXPECT(tcphdr.src == PP_HTONS(TEST_LOCAL_PORT)); in START_TEST()
619 EXPECT(s->tcphdr->seqno == htonl(seqnos_expected[i])); in check_seqnos()
Dtest_tcp_oos.c68 return seg->tcphdr->seqno; in tcp_oos_seg_seqno()
/third_party/lwip/src/include/lwip/priv/
Dtcp_priv.h155 #define TCP_TCPLEN(seg) ((seg)->len + (((TCPH_FLAGS((seg)->tcphdr) & (TCP_FIN | TCP_SYN)) != 0) ? 1…
273 struct tcp_hdr *tcphdr; /* the TCP header */ member
490 void tcp_debug_print(struct tcp_hdr *tcphdr);
496 # define tcp_debug_print(tcphdr) argument
/third_party/iptables/include/linux/netfilter/
Dxt_osf.h85 struct tcphdr tcp;
/third_party/iptables/utils/
Dnfsynproxy.c31 const struct tcphdr *th = (void *)iph + iph->ihl * 4; in parse_packet()
/third_party/musl/porting/liteos_a/kernel/include/netinet/
Dtcp.h111 struct tcphdr { struct
/third_party/musl/porting/uniproton/kernel/include/netinet/
Dtcp.h111 struct tcphdr { struct
/third_party/musl/porting/liteos_m/kernel/include/netinet/
Dtcp.h111 struct tcphdr { struct
/third_party/musl/ndk_musl_include/netinet/
Dtcp.h111 struct tcphdr { struct
/third_party/musl/include/netinet/
Dtcp.h111 struct tcphdr { struct
/third_party/musl/porting/liteos_m_iccarm/kernel/include/netinet/
Dtcp.h111 struct tcphdr { struct
/third_party/iptables/iptables/
Dxtables-monitor.c401 const struct tcphdr *tcph; in trace_print_packet()
/third_party/musl/
DWHATSNEW1153 - support for BSD version of struct tcphdr in addition to GNU version
/third_party/lwip/
DCHANGELOG866 * tcp_in.c: fixed bug #44766 (LWIP_WND_SCALE: tcphdr->wnd was not scaled in
1099 * tcp_out.c: fixed bug #39683 Assertion "seg->tcphdr not aligned" failed with