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: Simon Goldschmidt
Subject: [lwip-devel] [bug #20409] Add netif callback function for link change event
Date: Wed, 11 Jul 2007 17:41:23 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4

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

I still think that DHCP and AUTOIP could check the LINK_UP flag (compared to
the current state) in their timer routines. For gratouitous ARP, this would
also work:

The current FLAG_LINK_UP is not really used yet. For this purpose, a flag
LINK_WAS_GONE would be better. Any time one of the timer functions sees this
flag, they would do something and set back the bit. This works because only
one part is really responsible for one netif at any time (i.e. AUTOIP 'knows'
when DHCP is responsible for the netif, so it does nothing but is triggered
after DHCP timed out; also, ARP would only send the gratuitous ARP if no DHCP
is configured.

We could also include a new netif timer to do all that work. In any case, I
think it's a better solution than all the callbacks because it's the same for
raw and callback mode!

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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