1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Add IPv4Address::from_prefix_length

This commit is contained in:
Matias Fontanini
2016-03-19 16:26:00 -07:00
parent 3773443fc8
commit a70ce10bed
3 changed files with 14 additions and 6 deletions

View File

@@ -53,6 +53,13 @@ public:
*/
static const IPv4Address broadcast;
/**
* \brief Constructs an IPv4 address from a prefix length
*
* \param prefix_length The length of the prefix
*/
static IPv4Address from_prefix_length(uint32_t prefix_length);
/**
* \brief Constructor taking a const char*.
*