On Wed, 2011-08-03 at 18:18 +0200, Mason wrote:
> struct netif *netif_add(struct netif *netif, ip_addr_t *ipaddr,
> ip_addr_t *netmask,
>   ip_addr_t *gw, void *state, netif_init_fn init, netif_input_fn
> input)
> 
> My network interface is supposed to be configured by DHCP,
> so I have no appropriate value for addr, gw, mask.

There's plenty of people using lwIP with DHCP without problems, so I
think there's something wrong with the way you're trying to call
netif_add().  Rather than passing NULL arguments, I would try supplying
pointers to values that are zeroed, and let the DHCP code set them when
it gets the right address.  

Kieran


_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to