Searched refs:tcphdr (Results 1 – 7 of 7) sorted by relevance
| /lib/liblwip/src/core/ |
| D | tcp_in.c | 63 static struct tcp_hdr *tcphdr; variable 109 tcphdr = (struct tcp_hdr *)((u8_t *)p->payload + IPH_HL(iphdr) * 4); in tcp_input() 112 tcp_debug_print(tcphdr); in tcp_input() 138 tcp_debug_print(tcphdr); in tcp_input() 147 hdrlen = TCPH_HDRLEN(tcphdr); in tcp_input() 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() [all …]
|
| D | tcp_out.c | 97 struct tcp_hdr *tcphdr; in tcp_output_alloc_header() local 102 tcphdr = (struct tcp_hdr *)p->payload; in tcp_output_alloc_header() 103 tcphdr->src = htons(pcb->local_port); in tcp_output_alloc_header() 104 tcphdr->dest = htons(pcb->remote_port); in tcp_output_alloc_header() 105 tcphdr->seqno = seqno_be; in tcp_output_alloc_header() 106 tcphdr->ackno = htonl(pcb->rcv_nxt); in tcp_output_alloc_header() 107 TCPH_HDRLEN_FLAGS_SET(tcphdr, (5 + optlen / 4), TCP_ACK); in tcp_output_alloc_header() 108 tcphdr->wnd = htons(pcb->rcv_ann_wnd); in tcp_output_alloc_header() 109 tcphdr->chksum = 0; in tcp_output_alloc_header() 110 tcphdr->urgp = 0; in tcp_output_alloc_header() [all …]
|
| D | tcp.c | 1617 tcp_debug_print(struct tcp_hdr *tcphdr) in tcp_debug_print() argument 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() 1636 TCPH_FLAGS(tcphdr) >> 1 & 1, in tcp_debug_print() [all …]
|
| /lib/liblwip/test/unit/tcp/ |
| 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()
|
| D | test_tcp.c | 302 EXPECT(s->tcphdr->seqno == htonl(seqnos_expected[i])); in check_seqnos()
|
| D | test_tcp_oos.c | 66 return seg->tcphdr->seqno; in tcp_oos_seg_seqno()
|
| /lib/liblwip/src/include/lwip/ |
| 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
|