Searched refs:dhcp_pcb (Results 1 – 1 of 1) sorted by relevance
234 static struct udp_pcb *dhcp_pcb; variable276 LWIP_ASSERT("dhcp_inc_pcb_refcount(): memory leak", dhcp_pcb == NULL); in dhcp_inc_pcb_refcount()279 dhcp_pcb = udp_new(); in dhcp_inc_pcb_refcount()281 if (dhcp_pcb == NULL) { in dhcp_inc_pcb_refcount()285 ip_set_option(dhcp_pcb, SOF_BROADCAST); in dhcp_inc_pcb_refcount()288 udp_bind(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_CLIENT); in dhcp_inc_pcb_refcount()289 udp_connect(dhcp_pcb, IP4_ADDR_ANY, LWIP_IANA_PORT_DHCP_SERVER); in dhcp_inc_pcb_refcount()290 udp_recv(dhcp_pcb, dhcp_recv, NULL); in dhcp_inc_pcb_refcount()306 udp_remove(dhcp_pcb); in dhcp_dec_pcb_refcount()307 dhcp_pcb = NULL; in dhcp_dec_pcb_refcount()[all …]