Home
last modified time | relevance | path

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

/reactos/drivers/network/tcpip/lwip/src/core/ipv4/
H A Ddhcp.c234 static struct udp_pcb *dhcp_pcb; variable
276 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 …]