Lines Matching refs:lpcb
95 struct tcp_pcb_listen *lpcb;
216 for(lpcb = tcp_listen_pcbs.listen_pcbs; lpcb != NULL; lpcb = lpcb->next) {
217 if (lpcb->local_port == tcphdr->dest) {
219 if (ip_addr_cmp(&(lpcb->local_ip), ¤t_iphdr_dest)) {
222 } else if(ip_addr_isany(&(lpcb->local_ip))) {
224 lpcb_any = lpcb;
228 if (ip_addr_cmp(&(lpcb->local_ip), ¤t_iphdr_dest) ||
229 ip_addr_isany(&(lpcb->local_ip))) {
235 prev = (struct tcp_pcb *)lpcb;
239 if (lpcb == NULL) {
241 lpcb = lpcb_any;
245 if (lpcb != NULL) {
250 ((struct tcp_pcb_listen *)prev)->next = lpcb->next;
252 lpcb->next = tcp_listen_pcbs.listen_pcbs;
254 tcp_listen_pcbs.listen_pcbs = lpcb;
258 tcp_listen_input(lpcb);