lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] netif_add and addr, gw, mask as NULL parameters


From: Kieran Mansley
Subject: Re: [lwip-users] netif_add and addr, gw, mask as NULL parameters
Date: Thu, 04 Aug 2011 13:33:16 +0100

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




reply via email to

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