When I did it, I basically polled for
netif.dhcp->state == DHCP_BOUND
and read
ipaddr = netif.ip_addr;
netmask = netif.netmask;
gw = netif.gw;
but now I realize the dhcp code calls netif_set_up() when it reaches
that state, which also calls NETIF_STATUS_CALLBACK if
LWIP_NETIF_STATUS_CALLBACK is defined.
Now, I've been calling netif_set_up() before dhcp_start() cause I though
the ifc needed to be somehow "up" before UDP/IP would be sent through
it... looks like I was wrong and that was not necessary, or worse, not
correct.
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users