Home
last modified time | relevance | path

Searched refs:npcb (Results 1 – 2 of 2) sorted by relevance

/third_party/lwip/src/include/lwip/priv/
Dtcp_priv.h358 #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/
Dtcp_in.c649 struct tcp_pcb *npcb; local
679 npcb = tcp_alloc(pcb->prio);
683 if (npcb == NULL) {
692 set_tcp_pcb_net_group(npcb, group);
696 tcp_set_flags(npcb, TF_BACKLOGPEND);
699 ip_addr_copy(npcb->local_ip, *ip_current_dest_addr());
700 ip_addr_copy(npcb->remote_ip, *ip_current_src_addr());
701 npcb->local_port = pcb->local_port;
702 npcb->remote_port = tcphdr->src;
703 npcb->state = SYN_RCVD;
[all …]