Searched refs:npcb (Results 1 – 2 of 2) sorted by relevance
/third_party/lwip/src/include/lwip/priv/ |
D | tcp_priv.h | 358 #define TCP_REG(pcbs, npcb) do {\ argument 360 …LWIP_DEBUGF(TCP_DEBUG, ("TCP_REG %p local port %"U16_F"\n", (void *)(npcb), (npcb)->local_port)); \ 364 … LWIP_ASSERT("TCP_REG: already registered\n", tcp_tmp_pcb != (npcb)); \ 366 …_ASSERT("TCP_REG: pcb->state != CLOSED", ((pcbs) == &tcp_bound_pcbs) || ((npcb)->state != CLOSED))… 367 (npcb)->next = *(pcbs); \ 368 LWIP_ASSERT("TCP_REG: npcb->next != npcb", (npcb)->next != (npcb)); \ 369 *(pcbs) = (npcb); \ 373 #define TCP_RMV(pcbs, npcb) do { \ argument 376 … LWIP_DEBUGF(TCP_DEBUG, ("TCP_RMV: removing %p from %p\n", (void *)(npcb), (void *)(*(pcbs)))); \ 377 if(*(pcbs) == (npcb)) { \ [all …]
|
/third_party/lwip/src/core/ |
D | tcp_in.c | 632 struct tcp_pcb *npcb; local 659 npcb = tcp_alloc(pcb->prio); 663 if (npcb == NULL) { 673 tcp_set_flags(npcb, TF_BACKLOGPEND); 676 ip_addr_copy(npcb->local_ip, *ip_current_dest_addr()); 677 ip_addr_copy(npcb->remote_ip, *ip_current_src_addr()); 678 npcb->local_port = pcb->local_port; 679 npcb->remote_port = tcphdr->src; 680 npcb->state = SYN_RCVD; 681 npcb->rcv_nxt = seqno + 1; [all …]
|