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.cpp384 int rawLength = parsePrefix(destination, &family, rawAddress, sizeof(rawAddress), in modifyIpRoute() local
386 if (rawLength < 0) { in modifyIpRoute()
387 ALOGE("parsePrefix failed for destination %s (%s)", destination, strerror(-rawLength)); in modifyIpRoute()
388 return rawLength; in modifyIpRoute()
391 if (static_cast<size_t>(rawLength) > sizeof(rawAddress)) { in modifyIpRoute()
392 ALOGE("impossible! address too long (%d vs %zu)", rawLength, sizeof(rawAddress)); in modifyIpRoute()
438 rtattr rtaDst = { U16_RTA_LENGTH(rawLength), RTA_DST }; in modifyIpRoute()
439 rtattr rtaGateway = { U16_RTA_LENGTH(rawLength), RTA_GATEWAY }; in modifyIpRoute()
447 {rawAddress, static_cast<size_t>(rawLength)}, in modifyIpRoute()
451 {rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0}, in modifyIpRoute()