lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] New to lwip. How should I do with LINK_DOWN Event?


From: Simon Goldschmidt
Subject: Re: [lwip-users] New to lwip. How should I do with LINK_DOWN Event?
Date: Fri, 11 Nov 2011 19:00:41 +0100

"east3" <address@hidden> wrote:

> Hello,
>         I am writing a driver for my NIC, but I do not know how to do with 
> link down event.
>         My driver return ERR_IF from netif->linkoutput when link is down, and 
> it seems work.
>         But is this the correct way?

Yes, that's correct. Additionally, you should call netif_set_link_up and 
netif_set_link_down when the link comes or goes. This ensures that on turning 
link, DHCP or AutoIP are restarted.

Simon


reply via email to

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