Home
last modified time | relevance | path

Searched refs:rawLength (Results 1 – 2 of 2) sorted by relevance

/system/netd/server/
DNetdConstants.cpp115 int rawLength; in parsePrefix() local
123 rawLength = 4; in parsePrefix()
132 rawLength = 16; in parsePrefix()
141 if (rawLength > size) { in parsePrefix()
147 memcpy(address, rawAddress, rawLength); in parsePrefix()
150 return rawLength; in parsePrefix()
DRouteController.cpp347 int rawLength = parsePrefix(destination, &family, rawAddress, sizeof(rawAddress), in modifyIpRoute() local
349 if (rawLength < 0) { in modifyIpRoute()
350 ALOGE("parsePrefix failed for destination %s (%s)", destination, strerror(-rawLength)); in modifyIpRoute()
351 return rawLength; in modifyIpRoute()
354 if (static_cast<size_t>(rawLength) > sizeof(rawAddress)) { in modifyIpRoute()
355 ALOGE("impossible! address too long (%d vs %zu)", rawLength, sizeof(rawAddress)); in modifyIpRoute()
402 rtattr rtaDst = { U16_RTA_LENGTH(rawLength), RTA_DST }; in modifyIpRoute()
403 rtattr rtaGateway = { U16_RTA_LENGTH(rawLength), RTA_GATEWAY }; in modifyIpRoute()
411 { rawAddress, static_cast<size_t>(rawLength) }, in modifyIpRoute()
415 { rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0 }, in modifyIpRoute()