Home
last modified time | relevance | path

Searched refs:tcp_hdr (Results 1 – 24 of 24) sorted by relevance

/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/test/unit/tcp/
H A Dtcp_helper.c48 struct tcp_hdr* tcphdr; in tcp_create_segment_wnd()
49 u16_t pbuf_len = (u16_t)(sizeof(struct ip_hdr) + sizeof(struct tcp_hdr) + data_len); in tcp_create_segment_wnd()
55 EXPECT_RETNULL(p->len >= (sizeof(struct ip_hdr) + sizeof(struct tcp_hdr))); in tcp_create_segment_wnd()
58 EXPECT_RETNULL(p->len > (sizeof(struct ip_hdr) + sizeof(struct tcp_hdr))); in tcp_create_segment_wnd()
77 tcphdr = (struct tcp_hdr*)p->payload; in tcp_create_segment_wnd()
82 TCPH_HDRLEN_SET(tcphdr, sizeof(struct tcp_hdr)/4); in tcp_create_segment_wnd()
88 pbuf_header(p, -(s16_t)sizeof(struct tcp_hdr)); in tcp_create_segment_wnd()
92 pbuf_header(p, sizeof(struct tcp_hdr)); in tcp_create_segment_wnd()
H A Dtest_tcp.c138 struct tcp_hdr *hdr; in START_TEST()
163 hdr = (struct tcp_hdr *)p->payload; in START_TEST()
236 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data1) + sizeof(struct tcp_hdr) + sizeof(struct ip_hd… in START_TEST()
250 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data2) + sizeof(struct tcp_hdr) + sizeof(struct ip_hd… in START_TEST()
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/test/unit/tcp/
H A Dtcp_helper.c53 struct tcp_hdr* tcphdr; in tcp_create_segment_wnd()
54 u16_t pbuf_len = (u16_t)(sizeof(struct ip_hdr) + sizeof(struct tcp_hdr) + data_len); in tcp_create_segment_wnd()
60 EXPECT_RETNULL(p->len >= (sizeof(struct ip_hdr) + sizeof(struct tcp_hdr))); in tcp_create_segment_wnd()
63 EXPECT_RETNULL(p->len > (sizeof(struct ip_hdr) + sizeof(struct tcp_hdr))); in tcp_create_segment_wnd()
82 tcphdr = (struct tcp_hdr*)p->payload; in tcp_create_segment_wnd()
87 TCPH_HDRLEN_SET(tcphdr, sizeof(struct tcp_hdr)/4); in tcp_create_segment_wnd()
93 pbuf_header(p, -(s16_t)sizeof(struct tcp_hdr)); in tcp_create_segment_wnd()
97 pbuf_header(p, sizeof(struct tcp_hdr)); in tcp_create_segment_wnd()
H A Dtest_tcp.c343 struct tcp_hdr *hdr; in START_TEST()
364 hdr = (struct tcp_hdr *)p->payload; in START_TEST()
432 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data1) + sizeof(struct tcp_hdr) + sizeof(struct ip_hd… in START_TEST()
446 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data2) + sizeof(struct tcp_hdr) + sizeof(struct ip_hd… in START_TEST()
936 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data1a) + sizeof(data1b) + sizeof(struct tcp_hdr) + s… in START_TEST()
952 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data2a) + sizeof(data2b) + sizeof(struct tcp_hdr) + s… in START_TEST()
979 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data3) + sizeof(struct tcp_hdr) + sizeof(struct ip_hd… in START_TEST()
995 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data2a) + sizeof(data2b) + sizeof(struct tcp_hdr) + s… in START_TEST()
1009 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data3) + sizeof(data4) + sizeof(struct tcp_hdr) + siz… in START_TEST()
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/test/unit/tcp/
H A Dtcp_helper.c47 struct tcp_hdr* tcphdr; in tcp_create_segment_wnd()
48 u16_t pbuf_len = (u16_t)(sizeof(struct ip_hdr) + sizeof(struct tcp_hdr) + data_len); in tcp_create_segment_wnd()
53 EXPECT_RETNULL(p->len >= (sizeof(struct ip_hdr) + sizeof(struct tcp_hdr))); in tcp_create_segment_wnd()
56 EXPECT_RETNULL(p->len > (sizeof(struct ip_hdr) + sizeof(struct tcp_hdr))); in tcp_create_segment_wnd()
80 TCPH_HDRLEN_SET(tcphdr, sizeof(struct tcp_hdr)/4); in tcp_create_segment_wnd()
86 pbuf_header(p, -(s16_t)sizeof(struct tcp_hdr)); in tcp_create_segment_wnd()
90 pbuf_header(p, sizeof(struct tcp_hdr)); in tcp_create_segment_wnd()
H A Dtest_tcp.c162 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data1) + sizeof(struct tcp_hdr) + sizeof(struct ip_hd… in START_TEST()
176 …EXPECT_RET(txcounters.num_tx_bytes == sizeof(data2) + sizeof(struct tcp_hdr) + sizeof(struct ip_hd… in START_TEST()
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/netif/ppp/
H A Dvj.c143 register struct tcp_hdr *oth; in vj_compress_tcp()
144 register struct tcp_hdr *th; in vj_compress_tcp()
166 th = (struct tcp_hdr *)&((long *)ip)[hlen]; in vj_compress_tcp()
237 oth = (struct tcp_hdr *)&((long *)&cs->cs_ip)[hlen]; in vj_compress_tcp()
436 || hlen + sizeof(struct tcp_hdr) > nb->len in vj_uncompress_uncomp()
437 || (hlen += TCPH_HDRLEN(((struct tcp_hdr *)&((char *)ip)[hlen])) << 2) in vj_uncompress_uncomp()
467 struct tcp_hdr *th; in vj_uncompress_tcp()
503 th = (struct tcp_hdr *)&((u_char *)&cs->cs_ip)[hlen]; in vj_uncompress_tcp()
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/netif/ppp/
H A Dvj.c167 struct tcp_hdr *oth; in vj_compress_tcp()
168 struct tcp_hdr *th; in vj_compress_tcp()
190 th = (struct tcp_hdr *)&((struct vj_u32_t*)ip)[ilen]; in vj_compress_tcp()
274 oth = (struct tcp_hdr *)&((struct vj_u32_t*)&cs->cs_ip)[ilen]; in vj_compress_tcp()
468 || hlen + sizeof(struct tcp_hdr) > nb->len in vj_uncompress_uncomp()
469 || (hlen += TCPH_HDRLEN_BYTES((struct tcp_hdr *)&((char *)ip)[hlen])) in vj_uncompress_uncomp()
500 struct tcp_hdr *th; in vj_uncompress_tcp()
536 th = (struct tcp_hdr *)&((u8_t*)&cs->cs_ip)[hlen]; in vj_uncompress_tcp()
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/netif/ppp/
H A Dvj.c167 struct tcp_hdr *oth; in vj_compress_tcp()
168 struct tcp_hdr *th; in vj_compress_tcp()
190 th = (struct tcp_hdr *)&((struct vj_u32_t*)ip)[ilen]; in vj_compress_tcp()
279 oth = (struct tcp_hdr *)&((struct vj_u32_t*)&cs->cs_ip)[ilen]; in vj_compress_tcp()
473 || hlen + sizeof(struct tcp_hdr) > nb->len in vj_uncompress_uncomp()
474 || (hlen += TCPH_HDRLEN(((struct tcp_hdr *)&((char *)ip)[hlen])) << 2) in vj_uncompress_uncomp()
504 struct tcp_hdr *th; in vj_uncompress_tcp()
540 th = (struct tcp_hdr *)&((u8_t*)&cs->cs_ip)[hlen]; in vj_uncompress_tcp()
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/core/
H A Dtcp_out.c97 struct tcp_hdr *tcphdr; in tcp_output_alloc_header()
102 tcphdr = (struct tcp_hdr *)p->payload; in tcp_output_alloc_header()
191 seg->tcphdr = (struct tcp_hdr *)seg->p->payload; in tcp_create_segment()
845 struct tcp_hdr *tcphdr; in tcp_send_empty_ack()
859 tcphdr = (struct tcp_hdr *)p->payload; in tcp_send_empty_ack()
1200 struct tcp_hdr *tcphdr; in tcp_rst()
1207 (p->len >= sizeof(struct tcp_hdr))); in tcp_rst()
1209 tcphdr = (struct tcp_hdr *)p->payload; in tcp_rst()
1373 struct tcp_hdr *tcphdr; in tcp_keepalive()
1388 tcphdr = (struct tcp_hdr *)p->payload; in tcp_keepalive()
[all …]
H A Dtcp_in.c63 static struct tcp_hdr *tcphdr;
109 tcphdr = (struct tcp_hdr *)((u8_t *)p->payload + IPH_HL(iphdr) * 4); in tcp_input()
116 if (pbuf_header(p, -((s16_t)(IPH_HL(iphdr) * 4))) || (p->tot_len < sizeof(struct tcp_hdr))) { in tcp_input()
H A Dtcp.c1617 tcp_debug_print(struct tcp_hdr *tcphdr) in tcp_debug_print()
/nrf52832-nimble/rt-thread/components/net/lwip_nat/
H A Dipv4_nat.c187 …ntries_tcp_t *ip_nat_tcp_lookup_incoming(const struct ip_hdr *iphdr, const struct tcp_hdr *tcphdr);
189 … const struct ip_hdr *iphdr, const struct tcp_hdr *tcphdr,
421 struct tcp_hdr *tcphdr; in ip_nat_input()
435 tcphdr = (struct tcp_hdr*)ip_nat_check_header(p, sizeof(struct tcp_hdr)); in ip_nat_input()
617 struct tcp_hdr *tcphdr; in ip_nat_out()
636 tcphdr = (struct tcp_hdr *)ip_nat_check_header(p, sizeof(struct tcp_hdr)); in ip_nat_out()
846 ip_nat_tcp_lookup_incoming(const struct ip_hdr *iphdr, const struct tcp_hdr *tcphdr) in ip_nat_tcp_lookup_incoming()
878 const struct tcp_hdr *tcphdr, u8_t allocate) in ip_nat_tcp_lookup_outgoing()
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/core/
H A Dtcp_out.c111 struct tcp_hdr *tcphdr; in tcp_output_alloc_header()
116 tcphdr = (struct tcp_hdr *)p->payload; in tcp_output_alloc_header()
206 seg->tcphdr = (struct tcp_hdr *)seg->p->payload; in tcp_create_segment()
925 struct tcp_hdr *tcphdr; in tcp_send_empty_ack()
942 tcphdr = (struct tcp_hdr *)p->payload; in tcp_send_empty_ack()
1349 struct tcp_hdr *tcphdr; in tcp_rst()
1357 (p->len >= sizeof(struct tcp_hdr))); in tcp_rst()
1359 tcphdr = (struct tcp_hdr *)p->payload; in tcp_rst()
1557 struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload; in tcp_keepalive()
1590 struct tcp_hdr *tcphdr; in tcp_zero_window_probe()
[all …]
H A Dtcp_in.c69 static struct tcp_hdr *tcphdr;
120 tcphdr = (struct tcp_hdr *)p->payload;
H A Dtcp.c2037 tcp_debug_print(struct tcp_hdr *tcphdr) in tcp_debug_print()
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/lwip/prot/
H A Dtcp.h56 struct tcp_hdr { struct
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/include/lwip/prot/
H A Dtcp.h56 struct tcp_hdr { struct
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/include/lwip/
H A Dtcp_impl.h159 struct tcp_hdr { struct
295 struct tcp_hdr *tcphdr; /* the TCP header */
462 void tcp_debug_print(struct tcp_hdr *tcphdr);
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/core/
H A Dtcp_out.c196 seg->tcphdr = (struct tcp_hdr *)seg->p->payload; in tcp_create_segment()
1822 struct tcp_hdr *tcphdr; in tcp_output_alloc_header_common()
1829 tcphdr = (struct tcp_hdr *)p->payload; in tcp_output_alloc_header_common()
1874 struct tcp_hdr *tcphdr; in tcp_output_fill_options()
1880 tcphdr = (struct tcp_hdr *)p->payload; in tcp_output_fill_options()
1936 struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload; in tcp_output_control_segment()
2120 struct tcp_hdr *tcphdr; in tcp_zero_window_probe()
2162 tcphdr = (struct tcp_hdr *)p->payload; in tcp_zero_window_probe()
H A Dtcp_in.c75 static struct tcp_hdr *tcphdr;
138 tcphdr = (struct tcp_hdr *)p->payload;
H A Dtcp.c2407 tcp_debug_print(struct tcp_hdr *tcphdr) in tcp_debug_print()
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/lwip/priv/
H A Dtcp_priv.h267 struct tcp_hdr *tcphdr; /* the TCP header */
482 void tcp_debug_print(struct tcp_hdr *tcphdr);
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/include/lwip/priv/
H A Dtcp_priv.h273 struct tcp_hdr *tcphdr; /* the TCP header */
490 void tcp_debug_print(struct tcp_hdr *tcphdr);