Lines Matching refs:addr
45 struct sockaddr_un addr; in ConnectFn() local
46 memset(&addr, 0, sizeof(addr)); in ConnectFn()
47 addr.sun_family = AF_UNIX; in ConnectFn()
48 addr.sun_path[0] = '\0'; in ConnectFn()
49 strcpy(addr.sun_path + 1, pdata->sock_path); in ConnectFn()
51 if (connect(fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr)) < 0) { in ConnectFn()
69 struct sockaddr_un addr; in RunTest() local
70 memset(&addr, 0, sizeof(addr)); in RunTest()
71 addr.sun_family = AF_UNIX; in RunTest()
72 addr.sun_path[0] = '\0'; in RunTest()
73 strcpy(addr.sun_path + 1, sock_path); in RunTest()
75 …ASSERT_NE(-1, bind(fd, reinterpret_cast<struct sockaddr*>(&addr), sizeof(addr))) << strerror(errno… in RunTest()
92 test_fn(&addr, fd); in RunTest()
106 static void TestAccept4(struct sockaddr_un* addr, int fd) { in TestAccept4() argument
107 socklen_t len = sizeof(*addr); in TestAccept4()
108 int fd_acc = accept4(fd, reinterpret_cast<struct sockaddr*>(addr), &len, SOCK_CLOEXEC); in TestAccept4()
139 static void TestRecvMMsg(struct sockaddr_un *addr, int fd) { in TestRecvMMsg() argument
140 socklen_t len = sizeof(*addr); in TestRecvMMsg()
141 int fd_acc = accept(fd, reinterpret_cast<struct sockaddr*>(addr), &len); in TestRecvMMsg()
207 static void TestSendMMsg(struct sockaddr_un *addr, int fd) { in TestSendMMsg() argument
208 socklen_t len = sizeof(*addr); in TestSendMMsg()
209 int fd_acc = accept(fd, reinterpret_cast<struct sockaddr*>(addr), &len); in TestSendMMsg()