lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Why netif_init() removed?


From: Steven Woody
Subject: Re: [lwip-devel] Why netif_init() removed?
Date: Thu, 21 Apr 2011 09:53:01 +0800

On 21 April 2011 02:06, Simon Goldschmidt <address@hidden> wrote:
> Steven Woody <address@hidden> wrote:
>
>> Sorry, I don't get it.  If the interface is a modem, and the modem
>> reseted, so it's IP address has to be changed to another one, in these
>> kind of situation, user usually want to reset the interface, right?
>> With netif_init(), how do I do?
>
> If you want to change the interface's IP address, just call 
> netif_set_ipaddr(). If you want to remove the netif, call netif_remove(). If 
> you remove the last netif, netif_list will be NULL, so there's no need for a 
> function like netif_init().
>

Great, thanks!


> Simon
> _______________________________________________
> lwip-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-devel
>



-- 
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (address@hidden)



reply via email to

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