[Bug 653] NetDevice link change callback (SetLinkChangeCallback -> AddLinkChangeCallback).
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user