lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #20409] Add netif callback function for link change ev


From: Jared Grubb
Subject: [lwip-devel] [bug #20409] Add netif callback function for link change event
Date: Mon, 09 Jul 2007 16:40:52 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

Follow-up Comment #2, bug #20409 (project lwip):

status_callback is a call from netif TO the driver for the netif_set_up and
*_down events.

netif_link_change_callback would be a callback FROM the driver into the stack
when it experiences link changes. 

For example, the initial etharp_query as currently done in netif_set_up could
be generated before the link has been established (NETIF_FLAG_LINK_UP is
actually never tested in the lwIP code at all). If the link changes later on,
the stack never even knows this. 

It seems better to keep any stack operations (ARP, DHCP, etc) out of the
driver and initiated by the stack in response to a driver event. As for the
context the callback should be executed... I hadnt thought that part through
:)


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?20409>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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