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: Frédéric Bernon
Subject: [lwip-devel] [bug #20409] Add netif callback function for link change event
Date: Wed, 11 Jul 2007 18:51:29 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

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

Comment#21

I think the "gratuitous ARP " have to be send as soon as possible to inform
network switch, so call it in a synchrone way (like in current code) is
better.

About flags, I think that LINK_UP is enough: each module working during the
interface is "down" should handle that in it's states: if when it check an
interface, it is LINK DOWN, it have to do the "right changes" in its internal
states (for DHCP, come to DHCP_OFF, and reset some fields like in a part of
dhcp_release, for AUTOIP, change to AUTOIP_STATE_OFF, etc...). Perhaps add
some specific states for these modules is necessary (add a DHCP_LINKDOWN,
etc...), so, when they check netif's flags, and now, the LINK UP, they can
also do the "right things" (restart for DHCP/AUTOIP, send the ARP gratuitous,
resend group for IGMP...)


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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