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.cpp360 int rawLength = parsePrefix(destination, &family, rawAddress, sizeof(rawAddress), in modifyIpRoute() local
362 if (rawLength < 0) { in modifyIpRoute()
363 ALOGE("parsePrefix failed for destination %s (%s)", destination, strerror(-rawLength)); in modifyIpRoute()
364 return rawLength; in modifyIpRoute()
367 if (static_cast<size_t>(rawLength) > sizeof(rawAddress)) { in modifyIpRoute()
368 ALOGE("impossible! address too long (%d vs %zu)", rawLength, sizeof(rawAddress)); in modifyIpRoute()
415 rtattr rtaDst = { U16_RTA_LENGTH(rawLength), RTA_DST }; in modifyIpRoute()
416 rtattr rtaGateway = { U16_RTA_LENGTH(rawLength), RTA_GATEWAY }; in modifyIpRoute()
424 { rawAddress, static_cast<size_t>(rawLength) }, in modifyIpRoute()
428 { rawNexthop, nexthop ? static_cast<size_t>(rawLength) : 0 }, in modifyIpRoute()