// Return the V6 mapped representation of the address.
IPAddressV6 createIPv6() const;
+ /**
+ * Return a V6 address in the format of an 6To4 address.
+ */
+ IPAddressV6 getIPv6For6To4() const;
+
// Return the long (network byte order) representation of the address.
uint32_t toLong() const {
return toAddr().s_addr;
ByteArray4 toByteArray() const {
ByteArray4 ba{{0}};
std::memcpy(ba.data(), bytes(), 4);
- return std::move(ba);
+ return ba;
}
// @see IPAddress#toFullyQualified