Lines Matching refs:port
37 uint16_t port = 1024 + arc4random_uniform(0xffff - 1024); in bindAndListen() local
38 sockaddr_in6 sin6 = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in bindAndListen()
41 return port; in bindAndListen()
75 uint16_t port = bindAndListen(listensocket); in TEST_F() local
76 ASSERT_NE(0, port) << "Can't bind to server port"; in TEST_F()
79 sockaddr_in server4 = { .sin_family = AF_INET, .sin_port = htons(port) }; in TEST_F()
80 sockaddr_in6 server6 = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in TEST_F()
99 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
134 seenServer46 |= (msg->id.idiag_sport == htons(port)); in TEST_F()
135 seenServer6 |= (msg->id.idiag_sport == htons(port)); in TEST_F()
187 uint16_t port = bindAndListen(listensocket); in TEST_F() local
188 ASSERT_NE(0, port) << "Can't bind to server port"; in TEST_F()
189 sockaddr_in6 server = { .sin6_family = AF_INET6, .sin6_port = htons(port) }; in TEST_F()