/*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2015 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
// 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