/system/netd/libnetdutils/ |
D | Syscalls.cpp | 47 return statusFromErrno(errno, "open(\"" + pathname + "\"...) failed"); in open() 55 return statusFromErrno(errno, "socket() failed"); in socket() 63 return statusFromErrno(errno, "getsockname() failed"); in getsockname() 72 return statusFromErrno(errno, "getsockopt() failed"); in getsockopt() 81 return statusFromErrno(errno, "setsockopt() failed"); in setsockopt() 89 return statusFromErrno(errno, "bind() failed"); in bind() 97 return statusFromErrno(errno, "connect() failed"); in connect() 105 return statusFromErrno(errno, "ioctl() failed"); in ioctl() 113 return statusFromErrno(errno, "eventfd() failed"); in eventfd() 124 return statusFromErrno(errno, "ppoll() failed"); in ppoll() [all …]
|
D | SyscallsTest.cpp | 86 const Status kError = statusFromErrno(EINVAL, "test"); in TEST_F() 104 const Status kError = statusFromErrno(EINVAL, "test"); in TEST_F() 124 const Status kError = statusFromErrno(EINVAL, "test"); in TEST_F() 141 const Status kError = statusFromErrno(EINVAL, "test"); in TEST_F() 158 const Status kError = statusFromErrno(EINVAL, "test"); in TEST_F()
|
D | Socket.cpp | 29 return statusFromErrno(errno, "inet_ntop() failed"); in toString()
|
D | Status.cpp | 26 Status statusFromErrno(int err, const std::string& msg) { in statusFromErrno() function
|
D | StatusTest.cpp | 84 statusFromErrno(ENOTTY, "Not a typewriter, what did you expect?").ignoreError(); in TEST()
|
D | FdTest.cpp | 139 EXPECT_CALL(mSyscalls, close(toFd(u))).WillOnce(Return(statusFromErrno(EINTR, "test"))); in TEST_F()
|
/system/netd/server/ |
D | XfrmController.cpp | 241 return netdutils::statusFromErrno(-mSock, "Could not open netlink socket"); in open() 250 return netdutils::statusFromErrno(EBADMSG, "Invalid message"); in validateResponse() 259 return netdutils::statusFromErrno(EBADMSG, "Kernel buffer overrun"); in validateResponse() 263 return netdutils::statusFromErrno(EBADMSG, "Malformed error response"); in validateResponse() 265 return netdutils::statusFromErrno( in validateResponse() 275 return netdutils::statusFromErrno(EBADMSG, "Invalid message ID"); in validateResponse() 307 return netdutils::statusFromErrno(EBADMSG, "Invalid message length"); in sendMessage() 342 return netdutils::statusFromErrno(EAFNOSUPPORT, "Invalid address family"); in convertToXfrmAddr() 462 return netdutils::statusFromErrno(errno, "Failed to stat socket file descriptor"); in ipSecSetEncapSocketOwner() 465 return netdutils::statusFromErrno(EPERM, "fchown disabled for non-owner calls"); in ipSecSetEncapSocketOwner() [all …]
|
D | TrafficController.cpp | 69 using netdutils::statusFromErrno; 172 if (ret != 0) return statusFromErrno(errno, StringPrintf("change %s group failed", debugName)); in changeOwnerAndMode() 183 if (ret != 0) return statusFromErrno(errno, StringPrintf("change %s mode failed", debugName)); in changeOwnerAndMode() 246 return statusFromErrno(ret, "cgroup program get failed"); in attachProgramToCgroup() 251 return statusFromErrno(ret, "program attach failed"); in attachProgramToCgroup() 262 return statusFromErrno(ret, "Failed to find cgroup v2 root"); in initPrograms() 269 return statusFromErrno(ret, "Open the cgroup directory failed"); in initPrograms() 561 return statusFromErrno(EINVAL, ""); in updateOwnerMapEntry() 589 return statusFromErrno(ENOENT, StringPrintf("uid: %u does not exist in map", uid)); in removeRule() 598 return statusFromErrno(EINVAL, "Interface match must have nonzero interface index"); in addRule() [all …]
|
D | InterfaceControllerTest.cpp | 46 using netdutils::statusFromErrno; 74 .WillOnce(Return(ByMove(statusFromErrno(err, "open() failed")))); in expectOpenFile() 105 return statusFromErrno(err, "write() failed"); in expectWriteToFile() 148 const auto kError = statusFromErrno(EINVAL, ""); in TEST_F()
|
D | InterfaceController.cpp | 54 using android::netdutils::statusFromErrno; 62 return statusFromErrno(errno, "Failed to add addr"); \ 198 : statusFromErrno(EREMOTEIO, "SetProperty failed, see libc logs"); in setProperty() 219 return statusFromErrno(EOPNOTSUPP, in enableStablePrivacyAddresses() 288 return statusFromErrno(ENOENT, "invalid iface name: " + interface); in setIPv6AddrGenMode() 303 return statusFromErrno(EOPNOTSUPP, "unsupported addrGenMode"); in setIPv6AddrGenMode() 431 return statusFromErrno(errno, "Cannot open iface directory"); in getIfaceNames()
|
D | NetlinkListener.cpp | 42 using netdutils::statusFromErrno; 89 return statusFromErrno(EMSGSIZE, "unexpect message size"); in send()
|
D | XfrmControllerTest.cpp | 162 EXPECT_EQ(netdutils::statusFromErrno(errno, "Failed to stat socket file descriptor"), res); in TEST_F() 170 EXPECT_EQ(netdutils::statusFromErrno(EPERM, "fchown disabled for non-owner calls"), res); in TEST_F() 178 EXPECT_EQ(netdutils::statusFromErrno(EINVAL, "File descriptor was not a socket"), res); in TEST_F() 189 EXPECT_EQ(netdutils::statusFromErrno(EINVAL, "Socket was not a UDP socket"), res); in TEST_F() 200 EXPECT_EQ(netdutils::statusFromErrno(EINVAL, "Socket did not have UDP-encap sockopt set"), res); in TEST_F()
|
D | TetherController.cpp | 61 using android::netdutils::statusFromErrno; 895 return statusFromErrno(-ret, StringPrintf("failed to fetch tether stats (%d): %d", in getTetherStats() 900 return statusFromErrno(-ret, StringPrintf("failed to parse %s tether stats:\n%s", in getTetherStats()
|
/system/bpf/libbpf_android/include/bpf/ |
D | BpfMap.h | 63 return netdutils::statusFromErrno( in getFirstKey() 72 return netdutils::statusFromErrno( in getNextKey() 80 return netdutils::statusFromErrno( in writeValue() 89 return netdutils::statusFromErrno( in readValue() 97 return netdutils::statusFromErrno( in deleteValue() 173 return netdutils::statusFromErrno( in init()
|
/system/netd/tests/ |
D | netlink_listener_test.cpp | 52 using android::netdutils::statusFromErrno; 99 return statusFromErrno(EUCLEAN, "Closed socket is not untagged"); in checkNoGarbageTagsExist()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Status.h | 88 Status statusFromErrno(int err, const std::string& msg);
|