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: Simon Goldschmidt
Subject: Re: [lwip-devel] Why netif_init() removed?
Date: Wed, 20 Apr 2011 20:06:18 +0200

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().

Simon


reply via email to

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