Searched refs:fdlisten (Results 1 – 1 of 1) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/net/ |
D | tcp_mmap.c | 285 static void do_accept(int fdlisten) in do_accept() argument 287 if (setsockopt(fdlisten, SOL_SOCKET, SO_RCVLOWAT, in do_accept() 292 apply_rcvsnd_buf(fdlisten); in do_accept() 300 fd = accept(fdlisten, (struct sockaddr *)&addr, &addrlen); in do_accept() 371 int fdlisten = socket(cfg_family, SOCK_STREAM, 0); in main() local 373 if (fdlisten == -1) { in main() 377 apply_rcvsnd_buf(fdlisten); in main() 378 setsockopt(fdlisten, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); in main() 383 setsockopt(fdlisten, IPPROTO_TCP, TCP_MAXSEG, in main() 388 if (bind(fdlisten, (const struct sockaddr *)&listenaddr, cfg_alen) == -1) { in main() [all …]
|