Lines Matching refs:npcb
442 struct tcp_pcb *npcb;
466 npcb = tcp_alloc(pcb->prio);
470 if (npcb == NULL) {
479 ip_addr_copy(npcb->local_ip, current_iphdr_dest);
480 npcb->local_port = pcb->local_port;
481 ip_addr_copy(npcb->remote_ip, current_iphdr_src);
482 npcb->remote_port = tcphdr->src;
483 npcb->state = SYN_RCVD;
484 npcb->rcv_nxt = seqno + 1;
485 npcb->rcv_ann_right_edge = npcb->rcv_nxt;
486 npcb->snd_wnd = tcphdr->wnd;
487 npcb->snd_wnd_max = tcphdr->wnd;
488 npcb->ssthresh = npcb->snd_wnd;
489 npcb->snd_wl1 = seqno - 1;/* initialise to seqno-1 to force window update */
490 npcb->callback_arg = pcb->callback_arg;
492 npcb->accept = pcb->accept;
495 npcb->so_options = pcb->so_options & SOF_INHERITED;
498 TCP_REG_ACTIVE(npcb);
501 tcp_parseopt(npcb);
503 npcb->mss = tcp_eff_send_mss(npcb->mss, &(npcb->remote_ip));
509 rc = tcp_enqueue_flags(npcb, TCP_SYN | TCP_ACK);
511 tcp_abandon(npcb, 0);
514 return tcp_output(npcb);