Hello Everyone,
I am trying to port lwip to our research operating system. Everything has gone well so far except when I am trying to assign ip to my interface using dhcp. This does not happen always but pretty often: lwip fails at following assertion in dhcp.c: 1662 (I am using lwip 1.4.1):
LWIP_ASSERT("dhcp_create_msg: dhcp->p_out == NULL", dhcp->p_out == NULL);
using some outputs I realized this happens because dhcp_create_msg being called consecutively without a dhcp_delete_msg in between. For example I had the following pattern: