Home
last modified time | relevance | path

Searched refs:tcphdr (Results 1 - 25 of 27) sorted by relevance

12

/third_party/lwip/src/core/
H A Dtcp_in.c75 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 Dtcp_out.c208 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 Dtcp.c2583 * @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 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 in tcp_create_segment_wnd()
[all...]
H A 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()
H A Dtest_tcp_oos.c68 return seg->tcphdr->seqno; in tcp_oos_seg_seqno()
/third_party/libbpf/src/
H A Dbpf_helper_defs.h23 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 Dtcp_priv.h155 #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 Dtcp.h111 struct tcphdr { struct
/third_party/musl/porting/liteos_m_iccarm/kernel/include/netinet/
H A Dtcp.h111 struct tcphdr { struct
/third_party/musl/porting/liteos_a/kernel/include/netinet/
H A Dtcp.h115 struct tcphdr { struct
/third_party/musl/porting/liteos_m/kernel/include/netinet/
H A Dtcp.h111 struct tcphdr { struct
/third_party/musl/include/netinet/
H A Dtcp.h115 struct tcphdr { struct
/third_party/rust/crates/linux-raw-sys/src/aarch64/
H A Dgeneral.rs3659 pub struct tcphdr { structure names
3670 impl tcphdr { impls
3830 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/riscv64/
H A Dgeneral.rs3657 pub struct tcphdr { structure names
3668 impl tcphdr { impls
3828 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/riscv32/
H A Dgeneral.rs3637 pub struct tcphdr { structure names
3648 impl tcphdr { impls
3808 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/powerpc64/
H A Dgeneral.rs3782 pub struct tcphdr { structure names
3793 impl tcphdr { impls
3953 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/mips64/
H A Dgeneral.rs3842 pub struct tcphdr { structure names
3853 impl tcphdr { impls
4013 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/powerpc/
H A Dgeneral.rs3810 pub struct tcphdr { structure names
3821 impl tcphdr { impls
3981 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/mips/
H A Dgeneral.rs3906 pub struct tcphdr { structure names
3917 impl tcphdr { impls
4077 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/arm/
H A Dgeneral.rs3743 pub struct tcphdr { structure names
3754 impl tcphdr { impls
3914 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/sparc/
H A Dgeneral.rs4021 pub struct tcphdr { structure names
4032 impl tcphdr { impls
4192 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/s390x/
H A Dgeneral.rs3717 pub struct tcphdr { structure names
3728 impl tcphdr { impls
3888 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/sparc64/
H A Dgeneral.rs3991 pub struct tcphdr { structure names
4002 impl tcphdr { impls
4162 pub hdr: tcphdr,
/third_party/rust/crates/linux-raw-sys/src/x32/
H A Dgeneral.rs3686 pub struct tcphdr { structure names
3697 impl tcphdr { impls
3857 pub hdr: tcphdr,

Completed in 177 milliseconds

12