mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Added IPv6 class. It's working, but there's no support for extension headers yet.
This commit is contained in:
@@ -66,7 +66,14 @@ public:
|
||||
IPv6Address();
|
||||
|
||||
/**
|
||||
* \brief Constructor from a text representation.
|
||||
* \brief Constructor from a text representation char*.
|
||||
* \param addr The text representation from which to construct this
|
||||
* object.
|
||||
*/
|
||||
IPv6Address(const char *addr);
|
||||
|
||||
/**
|
||||
* \brief Constructor from a text representation std::string.
|
||||
* \param addr The text representation from which to construct this
|
||||
* object.
|
||||
*/
|
||||
@@ -181,6 +188,8 @@ public:
|
||||
return os << addr.to_string();
|
||||
}
|
||||
private:
|
||||
void init(const char *addr);
|
||||
|
||||
uint8_t address[address_size];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user