Home | History | Annotate | Download | only in server

Lines Matching refs:Result

43 Result DhcpServer::init() {
44 Result res = mSocket.open(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
62 return Result::success();
65 Result DhcpServer::run() {
75 return Result::error("Unable to fill signal set: %s", strerror(errno));
79 return Result::error("Unable to set signal mask: %s", strerror(errno));
93 Result res = mSocket.receiveFromInterface(&message,
125 return Result::error("Polling failed: %s", strerror(errno));
128 Result DhcpServer::sendMessage(unsigned int interfaceIndex,
143 Result res = getOfferAddress(interfaceIndex,
179 Result res = getOfferAddress(interfaceIndex,
209 Result res = getInterfaceAddress(interfaceIndex, &serverAddress);
227 Result res = getOfferAddress(interfaceIndex,
258 Result DhcpServer::getInterfaceData(unsigned int interfaceIndex,
263 return Result::error("Failed to get interface name for index %u: %s",
271 return Result::error("Failed to get data for interface %s: %s",
275 return Result::success();
278 Result DhcpServer::getInterfaceAddress(unsigned int interfaceIndex,
281 Result res = getInterfaceData(interfaceIndex, SIOCGIFADDR, &data);
289 Result DhcpServer::getInterfaceNetmask(unsigned int interfaceIndex,
292 Result res = getInterfaceData(interfaceIndex, SIOCGIFNETMASK, &data);
327 Result DhcpServer::getOfferAddress(unsigned int interfaceIndex,
335 Result res = getInterfaceAddress(interfaceIndex, &interfaceAddress);
384 return Result::error("DHCP server is out of addresses");
388 return Result::success();