[Bug 653] NetDevice link change callback (SetLinkChangeCallback -> AddLinkChangeCallback).

This commit is contained in:
Sebastien Vincent
2009-09-08 06:29:26 +02:00
parent 345a0d99e2
commit 8cbdcd69c1
22 changed files with 47 additions and 59 deletions

View File

@@ -128,12 +128,12 @@ public:
/**
* \param callback the callback to invoke
*
* Register a callback invoked whenever the link
* Add a callback invoked whenever the link
* status changes to UP. This callback is typically used
* by the IP/ARP layer to flush the ARP cache
* whenever the link goes up.
* by the IP/ARP layer to flush the ARP cache and by IPv6 stack
* to flush NDISC cache whenever the link goes up.
*/
virtual void SetLinkChangeCallback (Callback<void> callback) = 0;
virtual void AddLinkChangeCallback (Callback<void> callback) = 0;
/**
* \return true if this interface supports a broadcast address,
* false otherwise.

View File

@@ -121,7 +121,7 @@ SimpleNetDevice::IsLinkUp (void) const
return true;
}
void
SimpleNetDevice::SetLinkChangeCallback (Callback<void> callback)
SimpleNetDevice::AddLinkChangeCallback (Callback<void> callback)
{}
bool
SimpleNetDevice::IsBroadcast (void) const

View File

@@ -53,7 +53,7 @@ public:
virtual bool SetMtu (const uint16_t mtu);
virtual uint16_t GetMtu (void) const;
virtual bool IsLinkUp (void) const;
virtual void SetLinkChangeCallback (Callback<void> callback);
virtual void AddLinkChangeCallback (Callback<void> callback);
virtual bool IsBroadcast (void) const;
virtual Address GetBroadcast (void) const;
virtual bool IsMulticast (void) const;