/third_party/lwip/src/core/ |
H A D | tcp_in.c | 75 static struct tcp_hdr *tcphdr; variable 141 tcphdr = (struct tcp_hdr *)p->payload; 144 tcp_debug_print(tcphdr); 170 tcp_debug_print(tcphdr); 178 hdrlen_bytes = TCPH_HDRLEN_BYTES(tcphdr); 231 tcphdr->src = lwip_ntohs(tcphdr->src); 232 tcphdr->dest = lwip_ntohs(tcphdr->dest); 233 seqno = tcphdr [all...] |
H A D | tcp_out.c | 208 seg->tcphdr = (struct tcp_hdr *)seg->p->payload; in tcp_create_segment() 209 seg->tcphdr->src = lwip_htons(pcb->local_port); in tcp_create_segment() 210 seg->tcphdr->dest = lwip_htons(pcb->remote_port); in tcp_create_segment() 211 seg->tcphdr->seqno = lwip_htonl(seqno); in tcp_create_segment() 213 TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags); in tcp_create_segment() 215 seg->tcphdr->urgp = 0; in tcp_create_segment() 702 lwip_ntohl(seg->tcphdr->seqno), in tcp_write() 703 lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg))); in tcp_write() 803 if (seg != NULL && seg->tcphdr != NULL && ((apiflags & TCP_WRITE_FLAG_MORE) == 0)) { in tcp_write() 804 TCPH_SET_FLAG(seg->tcphdr, TCP_PS in tcp_write() 1835 struct tcp_hdr *tcphdr; tcp_output_alloc_header_common() local 1887 struct tcp_hdr *tcphdr; tcp_output_fill_options() local 1949 struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload; tcp_output_control_segment() local 2133 struct tcp_hdr *tcphdr; tcp_zero_window_probe() local [all...] |
H A D | tcp.c | 2583 * @param tcphdr pointer to a struct tcp_hdr 2586 tcp_debug_print(struct tcp_hdr *tcphdr) argument 2591 lwip_ntohs(tcphdr->src), lwip_ntohs(tcphdr->dest))); 2594 lwip_ntohl(tcphdr->seqno))); 2597 lwip_ntohl(tcphdr->ackno))); 2600 TCPH_HDRLEN(tcphdr), 2601 (u16_t)(TCPH_FLAGS(tcphdr) >> 5 & 1), 2602 (u16_t)(TCPH_FLAGS(tcphdr) >> 4 & 1), 2603 (u16_t)(TCPH_FLAGS(tcphdr) >> [all...] |
/third_party/lwip/test/unit/tcp/ |
H A D | tcp_helper.c | 53 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 in tcp_create_segment_wnd() [all...] |
H A D | test_tcp.c | 367 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()
|
H A D | test_tcp_oos.c | 68 return seg->tcphdr->seqno; in tcp_oos_seg_seqno()
|
/third_party/libbpf/src/ |
H A D | bpf_helper_defs.h | 23 struct tcphdr; 2513 * **sizeof**\ (**struct tcphdr**)). 2519 static long (*bpf_tcp_check_syncookie)(void *sk, void *iph, __u32 iph_len, struct tcphdr *th, __u32 th_len) = (void *) 100; 2740 * **sizeof**\ (**struct tcphdr**)). 2757 static __s64 (*bpf_tcp_gen_syncookie)(void *sk, void *iph, __u32 iph_len, struct tcphdr *th, __u32 th_len) = (void *) 110; 4584 * **sizeof**\ (**struct tcphdr**)). 4595 static __s64 (*bpf_tcp_raw_gen_syncookie_ipv4)(struct iphdr *iph, struct tcphdr *th, __u32 th_len) = (void *) 204; 4608 * **sizeof**\ (**struct tcphdr**)). 4621 static __s64 (*bpf_tcp_raw_gen_syncookie_ipv6)(struct ipv6hdr *iph, struct tcphdr *th, __u32 th_len) = (void *) 205; 4640 static long (*bpf_tcp_raw_check_syncookie_ipv4)(struct iphdr *iph, struct tcphdr *t [all...] |
/third_party/lwip/src/include/lwip/priv/ |
H A D | tcp_priv.h | 155 #define TCP_TCPLEN(seg) ((seg)->len + (((TCPH_FLAGS((seg)->tcphdr) & (TCP_FIN | TCP_SYN)) != 0) ? 1U : 0U)) 273 struct tcp_hdr *tcphdr; /* the TCP header */ member 495 void tcp_debug_print(struct tcp_hdr *tcphdr); 501 # define tcp_debug_print(tcphdr)
|
/third_party/musl/porting/uniproton/kernel/include/netinet/ |
H A D | tcp.h | 111 struct tcphdr { struct
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/netinet/ |
H A D | tcp.h | 111 struct tcphdr { struct
|
/third_party/musl/porting/liteos_a/kernel/include/netinet/ |
H A D | tcp.h | 115 struct tcphdr { struct
|
/third_party/musl/porting/liteos_m/kernel/include/netinet/ |
H A D | tcp.h | 111 struct tcphdr { struct
|
/third_party/musl/include/netinet/ |
H A D | tcp.h | 115 struct tcphdr { struct
|
/third_party/rust/crates/linux-raw-sys/src/aarch64/ |
H A D | general.rs | 3659 pub struct tcphdr { structure names 3670 impl tcphdr { impls 3830 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/riscv64/ |
H A D | general.rs | 3657 pub struct tcphdr { structure names 3668 impl tcphdr { impls 3828 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/riscv32/ |
H A D | general.rs | 3637 pub struct tcphdr { structure names 3648 impl tcphdr { impls 3808 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/powerpc64/ |
H A D | general.rs | 3782 pub struct tcphdr { structure names 3793 impl tcphdr { impls 3953 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/mips64/ |
H A D | general.rs | 3842 pub struct tcphdr { structure names 3853 impl tcphdr { impls 4013 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/powerpc/ |
H A D | general.rs | 3810 pub struct tcphdr { structure names 3821 impl tcphdr { impls 3981 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/mips/ |
H A D | general.rs | 3906 pub struct tcphdr { structure names 3917 impl tcphdr { impls 4077 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/arm/ |
H A D | general.rs | 3743 pub struct tcphdr { structure names 3754 impl tcphdr { impls 3914 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/sparc/ |
H A D | general.rs | 4021 pub struct tcphdr { structure names 4032 impl tcphdr { impls 4192 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/s390x/ |
H A D | general.rs | 3717 pub struct tcphdr { structure names 3728 impl tcphdr { impls 3888 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/sparc64/ |
H A D | general.rs | 3991 pub struct tcphdr { structure names 4002 impl tcphdr { impls 4162 pub hdr: tcphdr,
|
/third_party/rust/crates/linux-raw-sys/src/x32/ |
H A D | general.rs | 3686 pub struct tcphdr { structure names 3697 impl tcphdr { impls 3857 pub hdr: tcphdr,
|