Home
last modified time | relevance | path

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

12

/third_party/lwip/src/core/
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->seqno = lwip_ntohl(tcphdr->seqno);
234 ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno);
235 tcphdr->wnd = lwip_ntohs(tcphdr->wnd);
[all …]
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_PSH); in tcp_write()
[all …]
Dtcp.c2586 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) >> 3 & 1),
2604 (u16_t)(TCPH_FLAGS(tcphdr) >> 2 & 1),
2605 (u16_t)(TCPH_FLAGS(tcphdr) >> 1 & 1),
[all …]
/third_party/lwip/
D0056-fix-tso-small-packet-drop-in-kernel-server.patch28 - if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) {
32 - TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
53 - TCPH_SET_FLAG(seg->tcphdr, TCP_ACK);
87 + _seg->tcphdr = (struct tcp_hdr *)_seg->p->payload; \
88 + _seg->tcphdr->src = lwip_htons(_pcb->local_port); \
89 + _seg->tcphdr->dest = lwip_htons(_pcb->remote_port); \
90 + /* _seg->tcphdr->src = lwip_htons(_pcb->local_port); \ */ \
91 + /* _seg->tcphdr->dest = lwip_htons(_pcb->remote_port); \ */ \
92 + _seg->tcphdr->seqno = lwip_htonl(_seqno); \
97 + TCPH_HDRLEN_FLAGS_SET(_seg->tcphdr, (5 + _optlen / 4), _hdrflags); \
[all …]
D0085-add-lwip-log-tcp_rst-tcp_abandon-tcp_abort.patch106 if (!(TCPH_FLAGS(tcphdr) & TCP_RST)) {
111 + lwip_ntohs(tcphdr->dest), lwip_ntohs(tcphdr->src)));
113 ip_current_src_addr(), tcphdr->dest, tcphdr->src);
122 + lwip_ntohs(tcphdr->dest), lwip_ntohs(tcphdr->src)));
124 ip_current_src_addr(), tcphdr->dest, tcphdr->src);
140 + lwip_ntohs(tcphdr->dest), lwip_ntohs(tcphdr->src)));
142 ip_current_src_addr(), tcphdr->dest, tcphdr->src);
149 + lwip_ntohs(tcphdr->dest), lwip_ntohs(tcphdr->src)));
151 ip_current_src_addr(), tcphdr->dest, tcphdr->src);
167 … ackno, pcb->lastack, pcb->snd_nxt, lwip_ntohs(tcphdr->dest), lwip_ntohs(tcphdr->src)…
[all …]
D0038-add-tso.patch123 + seg->tcphdr = (struct tcp_hdr *)seg->p->payload;
124 + seg->tcphdr->src = lwip_htons(pcb->local_port);
125 + seg->tcphdr->dest = lwip_htons(pcb->remote_port);
126 + seg->tcphdr->seqno = lwip_htonl(seqno);
128 + TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (TCP_HLEN + optlen) / 4, hdrflags);
129 + seg->tcphdr->urgp = 0;
148 seg->tcphdr->urgp = 0;
168 + if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) {
172 + TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
192 + TCPH_SET_FLAG(seg->tcphdr, TCP_ACK);
[all …]
D0041-optimite-pcb-list-limit-send-size-and-ack-now.patch122 if ((TCPH_FLAGS(last_unsent->tcphdr) & (TCP_SYN | TCP_FIN | TCP_RST)) == 0) {
144 if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) {
200 lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
202 (TCPH_FLAGS(seg->tcphdr) & TCP_RST) == 0);
292 - TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
299 + TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) {
324 struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload;
328 + tcph_cksum_set(p, TCPH_HDRLEN_BYTES(tcphdr));
329 tcphdr->chksum = ip_chksum_pseudo_offload(IP_PROTO_TCP, p->tot_len, src, dst);
331 tcphdr->chksum = ip_chksum_pseudo(p, IP_PROTO_TCP, p->tot_len,
D0031-refactor-add-event-limit-send-pkts-num.patch46 + lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
50 lwip_ntohl(seg->tcphdr->seqno) - pcb->lastack + seg->len <= wnd) {
53 (TCPH_FLAGS(seg->tcphdr) & TCP_RST) == 0);
D0023-refactor-event-and-checksum-offload-support.patch293 tcp_debug_print(tcphdr);
349 + seg->tcphdr->chksum = ip_chksum_pseudo_offload(IP_PROTO_TCP,seg->p->tot_len, &pcb->local_ip, &…
355 seg->tcphdr->chksum = ip_chksum_pseudo(seg->p, IP_PROTO_TCP,
369 + seg->p->tot_len == TCPH_HDRLEN_BYTES(seg->tcphdr));
374 + seg->p->tot_len, TCPH_HDRLEN_BYTES(seg->tcphdr), &pcb->local_ip…
382 + seg->tcphdr->chksum = (u16_t)~FOLD_U32T(acc);
384 + if (chksum_slow != seg->tcphdr->chksum) {
387 + seg->tcphdr->chksum, chksum_slow));
388 + seg->tcphdr->chksum = chksum_slow;
392 + seg->tcphdr->chksum = ip_chksum_pseudo(seg->p, IP_PROTO_TCP,
[all …]
D0074-gazelle-offloads-are-registered-to-lwip.patch147 tcph_cksum_set(seg->p, TCPH_HDRLEN_BYTES(seg->tcphdr));
148 …seg->tcphdr->chksum = ip_chksum_pseudo_offload(IP_PROTO_TCP,seg->p->tot_len, &pcb->local_ip, &pcb-…
152 struct tcp_hdr *tcphdr = (struct tcp_hdr *)p->payload;
156 tcph_cksum_set(p, TCPH_HDRLEN_BYTES(tcphdr));
157 tcphdr->chksum = ip_chksum_pseudo_offload(IP_PROTO_TCP, p->tot_len, src, dst);
Dbackport-tcp-tighten-up-checks-for-received-SYN.patch49 ip_current_src_addr(), tcphdr->dest, tcphdr->src);
D0075-adapt-read-write-for-rtc-mode.patch219 lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg)));
339 + lwip_ntohl(seg->tcphdr->seqno),
340 + lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg)));
374 + if (seg != NULL && seg->tcphdr != NULL && ((apiflags & TCP_WRITE_FLAG_MORE) == 0)) {
375 + TCPH_SET_FLAG(seg->tcphdr, TCP_PSH);
D0005-syn-rcvd-state-reg-conn-into-conntable.patch24 npcb->snd_wnd = tcphdr->wnd;
D0080-enable-ipv6.patch185 - idx = TUPLE4_HASH_FN( ip_current_dest_addr()->addr, tcphdr->dest,
186 - ip_current_src_addr()->addr, tcphdr->src) &
187 + idx = TUPLE4_HASH_FN( ip_current_dest_addr(), tcphdr->dest,
188 + ip_current_src_addr(), tcphdr->src) &
D0032-fix-free-pbuf-miss-data.patch41 lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg)));
D0051-lwip-add-need_tso_send.patch46 …buf_remove_header(new_seg.p, new_seg.p->tot_len - new_seg.len - TCPH_HDRLEN_BYTES(new_seg.tcphdr));
D0086-log-add-errevent-log-and-tcp-exception-statistics.patch48 …DEBUGF(TCP_DEBUG, ("tcp_listen_input: listen backlog exceeded for port %"U16_F"\n", tcphdr->dest));
D0053-cleancode-improve-lwipopts.h-readability.patch934 idx = TUPLE4_HASH_FN( ip_current_dest_addr()->addr, tcphdr->dest,
935 ip_current_src_addr()->addr, tcphdr->src) &
938 pcb->local_port == tcphdr->dest &&
1059 …CP connection closed: FIN_WAIT_1 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
1068 …CP connection closed: FIN_WAIT_2 %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
1078 …("TCP connection closed: CLOSING %"U16_F" -> %"U16_F".\n", inseg.tcphdr->src, inseg.tcphdr->dest));
1190 lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg)));
1237 u32_t next_seqno = lwip_ntohl(seg->tcphdr->seqno);
1240 u32_t seg_seqno = lwip_ntohl(seg->tcphdr->seqno);
D0044-skip-unnecessary-tcp_route.patch30 lwip_ntohl(seg->tcphdr->seqno), pcb->lastack));
/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()
/third_party/libbpf/src/
Dbpf_helper_defs.h23 struct tcphdr;
2498 static long (*bpf_tcp_check_syncookie)(void *sk, void *iph, __u32 iph_len, struct tcphdr *th, __u32…
2736 static __s64 (*bpf_tcp_gen_syncookie)(void *sk, void *iph, __u32 iph_len, struct tcphdr *th, __u32 …
4547 static __s64 (*bpf_tcp_raw_gen_syncookie_ipv4)(struct iphdr *iph, struct tcphdr *th, __u32 th_len) …
4573 static __s64 (*bpf_tcp_raw_gen_syncookie_ipv6)(struct ipv6hdr *iph, struct tcphdr *th, __u32 th_len…
4592 static long (*bpf_tcp_raw_check_syncookie_ipv4)(struct iphdr *iph, struct tcphdr *th) = (void *) 20…
4613 static long (*bpf_tcp_raw_check_syncookie_ipv6)(struct ipv6hdr *iph, struct tcphdr *th) = (void *) …
/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
495 void tcp_debug_print(struct tcp_hdr *tcphdr);
501 # define tcp_debug_print(tcphdr) argument
/third_party/musl/ndk_musl_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

12