devices need to be aware of their subnet mask
This commit is contained in:
parent
822a3130b5
commit
db2d793805
|
@ -511,6 +511,19 @@ ipAddress Device::broadcastIp() const
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Device::deviceSubnetMask
|
||||
* @return
|
||||
*
|
||||
* The default implimenation is to return an invalid mask.
|
||||
* \note Platform aware device types must return their valid subnet mask.
|
||||
*/
|
||||
uint32_t Device::deviceSubnetMask() const
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Device::deviceHasDHCP
|
||||
* @return
|
||||
|
|
|
@ -92,6 +92,7 @@ protected:
|
|||
// OSI layer 3
|
||||
virtual ipAddress deviceIp() const;
|
||||
virtual ipAddress broadcastIp() const;
|
||||
virtual uint32_t deviceSubnetMask() const;
|
||||
virtual bool deviceHasDHCP() const;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue