/*
- * 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.
static inline void unpackInto(const unsigned char* src,
uint16_t* dest,
size_t count) {
- for (int i = 0, hi = 1, lo = 0; i < count; i++) {
+ for (size_t i = 0, hi = 1, lo = 0; i < count; i++) {
dest[i] = unpack(src[hi], src[lo]);
hi += 2;
lo += 2;
return isLoopback() || inBinarySubnet({{0xfc, 0x00}}, 7);
}
+// public
bool IPAddressV6::isLinkLocal() const {
return inBinarySubnet({{0xfe, 0x80}}, 10);
}