Lines Matching refs:res
63 Result res = mInterface.init(interfaceName); in init() local
64 if (!res) { in init()
65 return res; in init()
68 res = mRouter.init(); in init()
69 if (!res) { in init()
70 return res; in init()
73 res = mSocket.open(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in init()
74 if (!res) { in init()
75 return res; in init()
78 res = mSocket.bindRaw(mInterface.getIndex()); in init()
79 if (!res) { in init()
80 return res; in init()
232 int res = ::ppoll(&fds, 1, &ts, &pollSignalMask); in waitAndReceive() local
233 if (res == 0) { in waitAndReceive()
236 } else if (res > 0) { in waitAndReceive()
408 Result res = mInterface.bringUp(); in configureDhcp() local
409 if (!res) { in configureDhcp()
410 ALOGE("Could not configure DHCP: %s", res.c_str()); in configureDhcp()
415 res = mInterface.setMtu(mDhcpInfo.mtu); in configureDhcp()
416 if (!res) { in configureDhcp()
419 ALOGE("Could not configure DHCP: %s", res.c_str()); in configureDhcp()
447 res = mInterface.setAddress(mDhcpInfo.offeredAddress, in configureDhcp()
449 if (!res) { in configureDhcp()
450 ALOGE("Could not configure DHCP: %s", res.c_str()); in configureDhcp()
455 res = mRouter.setDefaultGateway(mDhcpInfo.gateway, in configureDhcp()
457 if (!res) { in configureDhcp()
458 ALOGE("Could not configure DHCP: %s", res.c_str()); in configureDhcp()
466 Result res = mInterface.setAddress(0, 0); in haltNetwork() local
467 if (!res) { in haltNetwork()
468 ALOGE("Could not halt network: %s", res.c_str()); in haltNetwork()
470 res = mInterface.bringDown(); in haltNetwork()
471 if (!res) { in haltNetwork()
472 ALOGE("Could not halt network: %s", res.c_str()); in haltNetwork()
478 Result res = mSocket.receiveRawUdp(PORT_BOOTP_CLIENT, msg, &isValid); in receiveDhcpMessage() local
479 if (!res) { in receiveDhcpMessage()
480 if (kDebug) ALOGD("Discarding message: %s", res.c_str()); in receiveDhcpMessage()
536 Result res = mSocket.sendRawUdp(INADDR_ANY, in sendMessage() local
542 if (!res) { in sendMessage()
543 ALOGE("Unable to send message: %s", res.c_str()); in sendMessage()