/third_party/lwip/src/core/ |
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->seqno = lwip_ntohl(tcphdr->seqno); 234 ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno); 235 tcphdr->wnd = lwip_ntohs(tcphdr->wnd); [all …]
|
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_PSH); in tcp_write() [all …]
|
D | tcp.c | 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) >> 3 & 1), 2604 (u16_t)(TCPH_FLAGS(tcphdr) >> 2 & 1), 2605 (u16_t)(TCPH_FLAGS(tcphdr) >> 1 & 1), [all …]
|
/third_party/lwip/ |
D | 0056-fix-tso-small-packet-drop-in-kernel-server.patch | 28 - 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 …]
|
D | 0085-add-lwip-log-tcp_rst-tcp_abandon-tcp_abort.patch | 106 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 …]
|
D | 0038-add-tso.patch | 123 + 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 …]
|
D | 0041-optimite-pcb-list-limit-send-size-and-ack-now.patch | 122 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,
|
D | 0031-refactor-add-event-limit-send-pkts-num.patch | 46 + 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);
|
D | 0023-refactor-event-and-checksum-offload-support.patch | 293 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 …]
|
D | 0074-gazelle-offloads-are-registered-to-lwip.patch | 147 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);
|
D | backport-tcp-tighten-up-checks-for-received-SYN.patch | 49 ip_current_src_addr(), tcphdr->dest, tcphdr->src);
|
D | 0075-adapt-read-write-for-rtc-mode.patch | 219 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);
|
D | 0005-syn-rcvd-state-reg-conn-into-conntable.patch | 24 npcb->snd_wnd = tcphdr->wnd;
|
D | 0080-enable-ipv6.patch | 185 - 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) &
|
D | 0032-fix-free-pbuf-miss-data.patch | 41 lwip_ntohl(seg->tcphdr->seqno) + TCP_TCPLEN(seg)));
|
D | 0051-lwip-add-need_tso_send.patch | 46 …buf_remove_header(new_seg.p, new_seg.p->tot_len - new_seg.len - TCPH_HDRLEN_BYTES(new_seg.tcphdr));
|
D | 0086-log-add-errevent-log-and-tcp-exception-statistics.patch | 48 …DEBUGF(TCP_DEBUG, ("tcp_listen_input: listen backlog exceeded for port %"U16_F"\n", tcphdr->dest));
|
D | 0053-cleancode-improve-lwipopts.h-readability.patch | 934 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);
|
D | 0044-skip-unnecessary-tcp_route.patch | 30 lwip_ntohl(seg->tcphdr->seqno), pcb->lastack));
|
/third_party/lwip/test/unit/tcp/ |
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->chksum = ip_chksum_pseudo(p, in tcp_create_segment_wnd()
|
/third_party/libbpf/src/ |
D | bpf_helper_defs.h | 23 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/ |
D | tcp_priv.h | 155 #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/ |
D | tcp.h | 111 struct tcphdr { struct
|
/third_party/musl/porting/uniproton/kernel/include/netinet/ |
D | tcp.h | 111 struct tcphdr { struct
|
/third_party/musl/porting/liteos_m/kernel/include/netinet/ |
D | tcp.h | 111 struct tcphdr { struct
|