Lines Matching defs:pcb
290 static void dns_recv(void *s, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port);
316 * Initialize the resolver: set up the UDP pcb and configure the default server
962 struct udp_pcb *pcb;
964 pcb = udp_new_ip_type(IPADDR_TYPE_ANY);
965 if (pcb == NULL) {
966 /* out of memory, have to reuse an existing pcb */
972 err = udp_bind(pcb, IP_ANY_TYPE, port);
979 udp_remove(pcb);
982 udp_recv(pcb, dns_recv, NULL);
983 return pcb;
987 * dns_alloc_pcb() - allocates a new pcb (or reuses an existing one) to be used
1011 /* if we come here, creating a new UDP pcb failed, so we have to use
1069 /* close the pcb used unless other request are using it */
1076 /* another request is still using the same pcb */
1083 /* if we come here, the pcb is not used any more and can be removed */
1260 * Receive input function for DNS response packets arriving for the dns UDP pcb.
1263 dns_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, const ip_addr_t *addr, u16_t port)
1274 LWIP_UNUSED_ARG(pcb);
1595 /* failed to get a UDP pcb */
1596 LWIP_DEBUGF(DNS_DEBUG, ("dns_enqueue: \"%s\": failed to allocate a pcb\n", name));
1601 LWIP_DEBUGF(DNS_DEBUG, ("dns_enqueue: \"%s\": use DNS pcb %"U16_F"\n", name, (u16_t)(entry->pcb_idx)));