Lines Matching full:connect
33 return connect(fd, &(struct sockaddr){ AF_UNSPEC }, sizeof(struct sockaddr)); in disconnect()
88 /* IP to listen on and connect to */ in FIXTURE_VARIANT()
90 /* Primary IP to connect from */ in FIXTURE_VARIANT()
92 /* Secondary IP to connect from */ in FIXTURE_VARIANT()
150 /* Connect from <src1_ip>:<SRC_PORT> */ in TEST_F()
159 ASSERT_EQ(connect(c1, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str); in TEST_F()
170 /* Try to connect from <src2_ip>:<SRC_PORT>. Expect failure. */ in TEST_F()
179 ASSERT_EQ(connect(c2, &addr.sa, addr.len), -1) TH_LOG("connect(%s)", addr.str); in TEST_F()
185 /* Connect again from <src2_ip>:<SRC_PORT> */ in TEST_F()
186 EXPECT_EQ(connect(c2, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str); in TEST_F()
194 /* Verify that a socket auto-bound during connect() blocks port reuse after
195 * disconnect (connect(AF_UNSPEC)) followed by an explicit port bind().
212 /* Connect from <src1_ip>:<SRC_PORT> */ in TEST_F()
221 ASSERT_EQ(connect(c1, &addr.sa, addr.len), 0) TH_LOG("connect(%s): %m", addr.str); in TEST_F()
241 /* Connect from <src2_ip>:<SRC_PORT>. Expect failure. */ in TEST_F()
250 EXPECT_EQ(connect(c2, &addr.sa, addr.len), -1) TH_LOG("connect(%s)", addr.str); in TEST_F()