Searched refs:rawLength (Results 1 – 2 of 2) sorted by relevance
/system/netd/server/ |
D | NetdConstants.cpp | 114 int rawLength; in parsePrefix() local 122 rawLength = 4; in parsePrefix() 131 rawLength = 16; in parsePrefix() 140 if (rawLength > size) { in parsePrefix() 146 memcpy(address, rawAddress, rawLength); in parsePrefix() 149 return rawLength; in parsePrefix()
|
D | RouteController.cpp | 375 int rawLength = parsePrefix(destination, &family, rawAddress, sizeof(rawAddress), in modifyIpRoute() local 377 if (rawLength < 0) { in modifyIpRoute() 378 ALOGE("parsePrefix failed for destination %s (%s)", destination, strerror(-rawLength)); in modifyIpRoute() 379 return rawLength; in modifyIpRoute() 382 if (static_cast<size_t>(rawLength) > sizeof(rawAddress)) { in modifyIpRoute() 383 ALOGE("impossible! address too long (%d vs %zu)", rawLength, sizeof(rawAddress)); in modifyIpRoute() 430 rtattr rtaDst = { U16_RTA_LENGTH(rawLength), RTA_DST }; in modifyIpRoute() 431 rtattr rtaGateway = { U16_RTA_LENGTH(rawLength), RTA_GATEWAY }; in modifyIpRoute() 439 { rawAddress, static_cast<size_t>(rawLength) }, in modifyIpRoute() 443 { rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0 }, in modifyIpRoute()
|