Lines Matching refs:ExpectOrExitWithErrorMsg
39 #define ExpectOrExitWithErrorMsg(aCondition, aErrorMsg) \ macro
86 ExpectOrExitWithErrorMsg(fd != -1, "socket(RxFd)"); in InitRxSocket()
89 ExpectOrExitWithErrorMsg(rval != -1, "setsockopt(RxFd, SO_REUSEADDR)"); in InitRxSocket()
92 ExpectOrExitWithErrorMsg(rval != -1, "setsockopt(RxFd, SO_REUSEPORT)"); in InitRxSocket()
100 ExpectOrExitWithErrorMsg(rval != -1, "setsockopt(RxFd, IP_MULTICAST_IF)"); in InitRxSocket()
105 ExpectOrExitWithErrorMsg(inet_pton(AF_INET, UTILS_SOCKET_GROUP_ADDR, &sockaddr->sin_addr), in InitRxSocket()
113 ExpectOrExitWithErrorMsg(rval != -1, "setsockopt(RxFd, IP_ADD_MEMBERSHIP)"); in InitRxSocket()
116 ExpectOrExitWithErrorMsg(rval != -1, "bind(RxFd)"); in InitRxSocket()
124 ExpectOrExitWithErrorMsg(rval != -1, "setsockopt(RxFd, IPV6_MULTICAST_IF)"); in InitRxSocket()
130 … ExpectOrExitWithErrorMsg(inet_pton(AF_INET6, UTILS_SOCKET_GROUP_ADDR6, &sockaddr->sin6_addr), in InitRxSocket()
138 ExpectOrExitWithErrorMsg(rval != -1, "setsockopt(RxFd, IPV6_JOIN_GROUP)"); in InitRxSocket()
141 ExpectOrExitWithErrorMsg(rval != -1, "bind(RxFd)"); in InitRxSocket()
161 ExpectOrExitWithErrorMsg(fd != -1, "socket(TxFd)"); in InitTxSocketIp6()
173 ExpectOrExitWithErrorMsg(rval != -1, "setsockopt(TxFd, IPV6_MULTICAST_IF)"); in InitTxSocketIp6()
176 ExpectOrExitWithErrorMsg(rval != -1, "setsockopt(TxFd, IPV6_MULTICAST_LOOP)"); in InitTxSocketIp6()
179 ExpectOrExitWithErrorMsg(rval != -1, "bind(TxFd)"); in InitTxSocketIp6()
201 ExpectOrExitWithErrorMsg(fd != -1, "socket(TxFd)"); in InitTxSocketIp4()
209 ExpectOrExitWithErrorMsg(rval != -1, "setsockopt(TxFd, IP_MULTICAST_IF)"); in InitTxSocketIp4()
212 ExpectOrExitWithErrorMsg(rval != -1, "setsockopt(TxFd, IP_MULTICAST_LOOP)"); in InitTxSocketIp4()
215 ExpectOrExitWithErrorMsg(rval != -1, "bind(TxFd)"); in InitTxSocketIp4()
299 ExpectOrExitWithErrorMsg(inet_pton(AF_INET, aLocalInterface, &addr4), "inet_pton(AF_INET)"); in TryInitSocketIp4()
315 ExpectOrExitWithErrorMsg(inet_pton(AF_INET6, aLocalInterface, &addr6), "inet_pton(AF_INET6)"); in TryInitSocketIp6()