| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | tcp_in.c | 156 tcphdr->src = ntohs(tcphdr->src); in tcp_input() 157 tcphdr->dest = ntohs(tcphdr->dest); in tcp_input() 158 seqno = tcphdr->seqno = ntohl(tcphdr->seqno); in tcp_input() 159 ackno = tcphdr->ackno = ntohl(tcphdr->ackno); in tcp_input() 160 tcphdr->wnd = ntohs(tcphdr->wnd); in tcp_input() 283 inseg.tcphdr = tcphdr; in tcp_input() 413 tcphdr->dest, tcphdr->src); in tcp_input() 457 ip_current_src_addr(), tcphdr->dest, tcphdr->src); in tcp_listen_input() 546 tcphdr->dest, tcphdr->src); in tcp_timewait_input() 680 tcphdr->dest, tcphdr->src); in tcp_process() [all …]
|
| A D | tcp_out.c | 97 struct tcp_hdr *tcphdr; in tcp_output_alloc_header() local 109 tcphdr->chksum = 0; in tcp_output_alloc_header() 110 tcphdr->urgp = 0; in tcp_output_alloc_header() 198 seg->tcphdr->urgp = 0; in tcp_create_segment() 845 struct tcp_hdr *tcphdr; in tcp_send_empty_ack() local 1010 if (TCP_SEQ_LT(ntohl(seg->tcphdr->seqno), ntohl(useg->tcphdr->seqno))) { in tcp_output() 1112 htonl(seg->tcphdr->seqno), htonl(seg->tcphdr->seqno) + in tcp_output_segment() 1200 struct tcp_hdr *tcphdr; in tcp_rst() local 1216 tcphdr->chksum = 0; in tcp_rst() 1217 tcphdr->urgp = 0; in tcp_rst() [all …]
|
| A D | tcp.c | 1622 ntohs(tcphdr->src), ntohs(tcphdr->dest))); in tcp_debug_print() 1625 ntohl(tcphdr->seqno))); in tcp_debug_print() 1628 ntohl(tcphdr->ackno))); in tcp_debug_print() 1631 TCPH_HDRLEN(tcphdr), in tcp_debug_print() 1632 TCPH_FLAGS(tcphdr) >> 5 & 1, in tcp_debug_print() 1633 TCPH_FLAGS(tcphdr) >> 4 & 1, in tcp_debug_print() 1634 TCPH_FLAGS(tcphdr) >> 3 & 1, in tcp_debug_print() 1635 TCPH_FLAGS(tcphdr) >> 2 & 1, in tcp_debug_print() 1637 TCPH_FLAGS(tcphdr) & 1, in tcp_debug_print() 1638 ntohs(tcphdr->wnd))); in tcp_debug_print() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ |
| A D | tcp_in.c | 212 tcphdr->src = lwip_ntohs(tcphdr->src); 213 tcphdr->dest = lwip_ntohs(tcphdr->dest); 214 seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno); 215 ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno); 216 tcphdr->wnd = lwip_ntohs(tcphdr->wnd); 345 inseg.tcphdr = tcphdr; 516 ip_current_src_addr(), tcphdr->dest, tcphdr->src); 582 ip_current_src_addr(), tcphdr->dest, tcphdr->src); 680 ip_current_src_addr(), tcphdr->dest, tcphdr->src); 830 ip_current_src_addr(), tcphdr->dest, tcphdr->src); [all …]
|
| A D | tcp_out.c | 111 struct tcp_hdr *tcphdr; in tcp_output_alloc_header() local 119 tcphdr->seqno = seqno_be; in tcp_output_alloc_header() 123 tcphdr->chksum = 0; in tcp_output_alloc_header() 124 tcphdr->urgp = 0; in tcp_output_alloc_header() 213 seg->tcphdr->urgp = 0; in tcp_create_segment() 925 struct tcp_hdr *tcphdr; in tcp_send_empty_ack() local 1262 lwip_htonl(seg->tcphdr->seqno), lwip_htonl(seg->tcphdr->seqno) + in tcp_output_segment() 1349 struct tcp_hdr *tcphdr; in tcp_rst() local 1370 tcphdr->chksum = 0; in tcp_rst() 1371 tcphdr->urgp = 0; in tcp_rst() [all …]
|
| A D | tcp.c | 2042 tcp_debug_print(struct tcp_hdr *tcphdr) in tcp_debug_print() argument 2047 lwip_ntohs(tcphdr->src), lwip_ntohs(tcphdr->dest))); in tcp_debug_print() 2050 lwip_ntohl(tcphdr->seqno))); in tcp_debug_print() 2053 lwip_ntohl(tcphdr->ackno))); in tcp_debug_print() 2056 TCPH_HDRLEN(tcphdr), in tcp_debug_print() 2057 (u16_t)(TCPH_FLAGS(tcphdr) >> 5 & 1), in tcp_debug_print() 2058 (u16_t)(TCPH_FLAGS(tcphdr) >> 4 & 1), in tcp_debug_print() 2059 (u16_t)(TCPH_FLAGS(tcphdr) >> 3 & 1), in tcp_debug_print() 2063 lwip_ntohs(tcphdr->wnd))); in tcp_debug_print() 2064 tcp_debug_print_flags(TCPH_FLAGS(tcphdr)); in tcp_debug_print() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/core/ |
| A D | tcp_in.c | 228 tcphdr->src = lwip_ntohs(tcphdr->src); 229 tcphdr->dest = lwip_ntohs(tcphdr->dest); 230 seqno = tcphdr->seqno = lwip_ntohl(tcphdr->seqno); 231 ackno = tcphdr->ackno = lwip_ntohl(tcphdr->ackno); 232 tcphdr->wnd = lwip_ntohs(tcphdr->wnd); 411 inseg.tcphdr = tcphdr; 580 ip_current_src_addr(), tcphdr->dest, tcphdr->src); 650 ip_current_src_addr(), tcphdr->dest, tcphdr->src); 759 ip_current_src_addr(), tcphdr->dest, tcphdr->src); 912 ip_current_src_addr(), tcphdr->dest, tcphdr->src); [all …]
|
| A D | tcp_out.c | 203 seg->tcphdr->urgp = 0; in tcp_create_segment() 1389 if (TCP_SEQ_LT(lwip_ntohl(seg->tcphdr->seqno), lwip_ntohl(useg->tcphdr->seqno))) { in tcp_output() 1557 seg->p->payload = seg->tcphdr; in tcp_output_segment() 1559 seg->tcphdr->chksum = 0; in tcp_output_segment() 1750 TCP_SEQ_LT(lwip_ntohl((*cur_seg)->tcphdr->seqno), lwip_ntohl(seg->tcphdr->seqno))) { in tcp_rexmit() 1822 struct tcp_hdr *tcphdr; in tcp_output_alloc_header_common() local 1832 tcphdr->seqno = seqno_be; in tcp_output_alloc_header_common() 1836 tcphdr->chksum = 0; in tcp_output_alloc_header_common() 1837 tcphdr->urgp = 0; in tcp_output_alloc_header_common() 1874 struct tcp_hdr *tcphdr; in tcp_output_fill_options() local [all …]
|
| A D | tcp.c | 2405 tcp_debug_print(struct tcp_hdr *tcphdr) in tcp_debug_print() argument 2410 lwip_ntohs(tcphdr->src), lwip_ntohs(tcphdr->dest))); in tcp_debug_print() 2413 lwip_ntohl(tcphdr->seqno))); in tcp_debug_print() 2416 lwip_ntohl(tcphdr->ackno))); in tcp_debug_print() 2419 TCPH_HDRLEN(tcphdr), in tcp_debug_print() 2420 (u16_t)(TCPH_FLAGS(tcphdr) >> 5 & 1), in tcp_debug_print() 2421 (u16_t)(TCPH_FLAGS(tcphdr) >> 4 & 1), in tcp_debug_print() 2422 (u16_t)(TCPH_FLAGS(tcphdr) >> 3 & 1), in tcp_debug_print() 2426 lwip_ntohs(tcphdr->wnd))); in tcp_debug_print() 2427 tcp_debug_print_flags(TCPH_FLAGS(tcphdr)); in tcp_debug_print() [all …]
|
| /components/net/lwip-nat/ |
| A D | ipv4_nat.c | 421 struct tcp_hdr *tcphdr; in ip_nat_input() local 436 if (tcphdr == NULL) { in ip_nat_input() 443 tcphdr->dest = nat_entry.tcp->sport; in ip_nat_input() 445 ip_nat_chksum_adjust((u8_t *)&(tcphdr->chksum), in ip_nat_input() 617 struct tcp_hdr *tcphdr; in ip_nat_out() local 637 if (tcphdr == NULL) { in ip_nat_out() 644 tcphdr->src = nat_entry.tcp->nport; in ip_nat_out() 853 (tcphdr->src == ip_nat_tcp_table[i].dport) && in ip_nat_tcp_lookup_incoming() 889 (tcphdr->src == ip_nat_tcp_table[i].sport) && in ip_nat_tcp_lookup_outgoing() 906 nat_entry.tcp->sport = tcphdr->src; in ip_nat_tcp_lookup_outgoing() [all …]
|
| /components/net/lwip/lwip-1.4.1/test/unit/tcp/ |
| A D | tcp_helper.c | 47 struct tcp_hdr* tcphdr; in tcp_create_segment_wnd() local 75 tcphdr = p->payload; in tcp_create_segment_wnd() 76 tcphdr->src = htons(src_port); in tcp_create_segment_wnd() 77 tcphdr->dest = htons(dst_port); in tcp_create_segment_wnd() 78 tcphdr->seqno = htonl(seqno); in tcp_create_segment_wnd() 79 tcphdr->ackno = htonl(ackno); in tcp_create_segment_wnd() 80 TCPH_HDRLEN_SET(tcphdr, sizeof(struct tcp_hdr)/4); in tcp_create_segment_wnd() 81 TCPH_FLAGS_SET(tcphdr, headerflags); in tcp_create_segment_wnd() 82 tcphdr->wnd = htons(wnd); in tcp_create_segment_wnd() 95 tcphdr->chksum = inet_chksum_pseudo(p, src_ip, dst_ip, in tcp_create_segment_wnd()
|
| A D | test_tcp.c | 302 EXPECT(s->tcphdr->seqno == htonl(seqnos_expected[i])); in check_seqnos()
|
| A D | test_tcp_oos.c | 66 return seg->tcphdr->seqno; in tcp_oos_seg_seqno()
|
| /components/net/lwip/lwip-2.1.2/test/unit/tcp/ |
| 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->chksum = ip_chksum_pseudo(p, in tcp_create_segment_wnd()
|
| 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()
|
| A D | test_tcp_oos.c | 68 return seg->tcphdr->seqno; in tcp_oos_seg_seqno()
|
| /components/net/lwip/lwip-2.0.3/test/unit/tcp/ |
| A D | tcp_helper.c | 48 struct tcp_hdr* tcphdr; in tcp_create_segment_wnd() local 77 tcphdr = (struct tcp_hdr*)p->payload; in tcp_create_segment_wnd() 78 tcphdr->src = htons(src_port); in tcp_create_segment_wnd() 79 tcphdr->dest = htons(dst_port); in tcp_create_segment_wnd() 80 tcphdr->seqno = htonl(seqno); in tcp_create_segment_wnd() 81 tcphdr->ackno = htonl(ackno); in tcp_create_segment_wnd() 82 TCPH_HDRLEN_SET(tcphdr, sizeof(struct tcp_hdr)/4); in tcp_create_segment_wnd() 83 TCPH_FLAGS_SET(tcphdr, headerflags); in tcp_create_segment_wnd() 84 tcphdr->wnd = htons(wnd); in tcp_create_segment_wnd() 97 tcphdr->chksum = ip_chksum_pseudo(p, in tcp_create_segment_wnd()
|
| A D | test_tcp.c | 376 EXPECT(s->tcphdr->seqno == htonl(seqnos_expected[i])); in check_seqnos()
|
| A D | test_tcp_oos.c | 68 return seg->tcphdr->seqno; in tcp_oos_seg_seqno()
|
| /components/net/lwip/lwip-1.4.1/src/include/lwip/ |
| A D | tcp_impl.h | 184 #define TCP_TCPLEN(seg) ((seg)->len + ((TCPH_FLAGS((seg)->tcphdr) & (TCP_FIN | TCP_SYN)) != 0)) 295 struct tcp_hdr *tcphdr; /* the TCP header */ member 462 void tcp_debug_print(struct tcp_hdr *tcphdr); 468 # define tcp_debug_print(tcphdr) argument
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/priv/ |
| A D | tcp_priv.h | 152 #define TCP_TCPLEN(seg) ((seg)->len + (((TCPH_FLAGS((seg)->tcphdr) & (TCP_FIN | TCP_SYN)) != 0) ? 1… 267 struct tcp_hdr *tcphdr; /* the TCP header */ member 482 void tcp_debug_print(struct tcp_hdr *tcphdr); 488 # define tcp_debug_print(tcphdr) argument
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/priv/ |
| A 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 490 void tcp_debug_print(struct tcp_hdr *tcphdr); 496 # define tcp_debug_print(tcphdr) argument
|
| /components/net/lwip/lwip-2.0.3/ |
| A D | CHANGELOG | 613 * tcp_in.c: fixed bug #44766 (LWIP_WND_SCALE: tcphdr->wnd was not scaled in 846 * tcp_out.c: fixed bug #39683 Assertion "seg->tcphdr not aligned" failed with
|
| /components/net/lwip/lwip-2.1.2/ |
| A D | CHANGELOG | 866 * tcp_in.c: fixed bug #44766 (LWIP_WND_SCALE: tcphdr->wnd was not scaled in 1099 * tcp_out.c: fixed bug #39683 Assertion "seg->tcphdr not aligned" failed with
|