|
From: | Neerav Patel |
Subject: | [lwip-users] Assertions when using DHCP when using LWIP 2.0 |
Date: | Fri, 20 Jan 2017 21:16:26 +0000 |
Hi
I am running into two assertions on starting DHCP. They are the following:
Assertion "dhcp_create_msg: dhcp->p_out == NULL" failed at line 1774 in src/core/ipv4/dhcp.c
Assertion "dhcp_create_msg: dhcp->msg_out == NULL" failed at line 1775 in src/core/ipv4/dhcp.c
code I use to start lwip is the follows:
IP4_ADDR(&gw, 0,0,0,0);
IP4_ADDR(&ipaddr, 0,0,0,0);
IP4_ADDR(&netmask, 0,0,0,0);
netif_add(ðernet_netif, &ipaddr, &netmask, &gw, NULL, ethernetif_init, tcpip_input);
netif_set_default(ðernet_netif);
netif_set_up(ðernet_netif);
dhcp_start(ðernet_netif);
Can someone shed some light into why I am running into this?
Thanks in advance. |
[Prev in Thread] | Current Thread | [Next in Thread] |