/*
- * 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.
// @see IPAddress#isLoopback
bool isLoopback() const;
+ // @see IPAddress#isLinkLocal
+ bool isLinkLocal() const;
+
// @see IPAddress#isNonroutable
bool isNonroutable() const;
private:
union AddressStorage {
+ static_assert(sizeof(in_addr) == sizeof(ByteArray4),
+ "size of in_addr and ByteArray4 are different");
in_addr inAddr_;
ByteArray4 bytes_;
AddressStorage() {