lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Assertions when using DHCP when using LWIP 2.0


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(&ethernet_netif, &ipaddr, &netmask, &gw, NULL, ethernetif_init, tcpip_input);
   netif_set_default(&ethernet_netif);
   netif_set_up(&ethernet_netif);
   dhcp_start(&ethernet_netif);

Can someone shed some light into why I am running into this? 


Thanks in advance.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]