1
0
Fork 0

devices need to be aware of their subnet mask

This commit is contained in:
Kevin Matz 2023-05-22 10:14:38 -04:00
parent 822a3130b5
commit db2d793805
2 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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: