Lines Matching refs:tcp6
371 int c, ret, fd4 = 0, fd6 = 0, fd4m = 0, fd6m = 0, tcp4 = 0, tcp6 = 0, in main() local
460 if (tcp6) in main()
461 close(tcp6); in main()
468 tcp6 = get_socket(AF_INET6, IPPROTO_TCP); in main()
472 fd4, fd6, fd4m, fd6m, tcp4, tcp6); in main()
487 ret = setsockopt(tcp6, SOL_SOCKET, SO_REUSEPORT, &opt, sizeof(opt)); in main()
492 bind_device(tcp6, interface, &addr6_recv, sizeof(addr6_recv), AF_INET6); in main()
497 if (listen(tcp6, 0) < 0) { in main()
505 if (fcntl(tcp6, F_SETFL, O_NONBLOCK) < 0) { in main()
522 FD_SET(tcp6, &rfds); in main()
526 FD_SET(tcp6, &errfds); in main()
528 fd = MAX(tcp4, tcp6); in main()
564 accepted6 = accept(tcp6, (struct sockaddr *)&addr6_recv, in main()
624 close(tcp6); in main()