Lines Matching +full:fail +full:- +full:fast

32  * This test is to ensure that if TCP Fast Open is configured, that socket
33 * connections will still work. These tests are able to detect if TCP Fast
41 * The second test will create the TCP fast open cookie,
43 * e.g. on Linux 4.15.0-135-generic:
44 * $ grep '^TcpExt:' /proc/net/netstat | cut -d ' ' -f 84-90 | column -t
45 * The third attempt will use the cookie and actually do TCP fast open.
46 * The 4th time is client-TFO only, the 5th time is server-TFO only.
135 /* SECOND ACCEPT: if TFO is supported, this will still fail until data is sent */ in test_bio_tfo()
144 BIO_printf(bio_err, "Success: non-TFO connection accepted without data\n"); in test_bio_tfo()
207 int cfd = -1; /* client socket */ in test_fd_tfo()
208 int afd = -1; /* accept socket */ in test_fd_tfo()
209 int sfd = -1; /* server accepted socket */ in test_fd_tfo()
244 switch (ai->ai_family) { in test_fd_tfo()
246 port = ((struct sockaddr_in *)ai->ai_addr)->sin_port; in test_fd_tfo()
247 addr = &((struct sockaddr_in *)ai->ai_addr)->sin_addr; in test_fd_tfo()
248 addrlen = sizeof(((struct sockaddr_in *)ai->ai_addr)->sin_addr); in test_fd_tfo()
252 port = ((struct sockaddr_in6 *)ai->ai_addr)->sin6_port; in test_fd_tfo()
253 addr = &((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr; in test_fd_tfo()
254 addrlen = sizeof(((struct sockaddr_in6 *)ai->ai_addr)->sin6_addr); in test_fd_tfo()
258 BIO_printf(bio_err, "Unknown address family %d\n", ai->ai_family); in test_fd_tfo()
263 || !TEST_true(BIO_ADDR_rawmake(baddr, ai->ai_family, addr, addrlen, port))) in test_fd_tfo()
268 if (!TEST_int_ge(afd = BIO_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol, 0), 0) in test_fd_tfo()
279 port = ((struct sockaddr_in *)&sstorage)->sin_port; in test_fd_tfo()
280 addr = &((struct sockaddr_in *)&sstorage)->sin_addr; in test_fd_tfo()
281 addrlen = sizeof(((struct sockaddr_in *)&sstorage)->sin_addr); in test_fd_tfo()
284 port = ((struct sockaddr_in6 *)&sstorage)->sin6_port; in test_fd_tfo()
285 addr = &((struct sockaddr_in6 *)&sstorage)->sin6_addr; in test_fd_tfo()
286 addrlen = sizeof(((struct sockaddr_in6 *)&sstorage)->sin6_addr); in test_fd_tfo()
296 if (!TEST_int_ge(cfd = BIO_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol, 0), 0)) in test_fd_tfo()
301 if (sfd == -1) { in test_fd_tfo()
335 /* SECOND ACCEPT: if TFO is supported, this will still fail until data is sent */ in test_fd_tfo()
337 if (sfd == -1) { in test_fd_tfo()
346 BIO_printf(bio_err, "Success: non-TFO connection accepted without data\n"); in test_fd_tfo()
379 if (sfd == -1) { in test_fd_tfo()