Searched refs:fdlisten (Results 1 – 1 of 1) sorted by relevance
/Linux-v5.4/tools/testing/selftests/net/ |
D | tcp_mmap.c | 271 static void do_accept(int fdlisten) in do_accept() argument 273 if (setsockopt(fdlisten, SOL_SOCKET, SO_RCVLOWAT, in do_accept() 278 apply_rcvsnd_buf(fdlisten); in do_accept() 286 fd = accept(fdlisten, (struct sockaddr *)&addr, &addrlen); in do_accept() 357 int fdlisten = socket(cfg_family, SOCK_STREAM, 0); in main() local 359 if (fdlisten == -1) { in main() 363 apply_rcvsnd_buf(fdlisten); in main() 364 setsockopt(fdlisten, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on)); in main() 369 setsockopt(fdlisten, IPPROTO_TCP, TCP_MAXSEG, in main() 374 if (bind(fdlisten, (const struct sockaddr *)&listenaddr, cfg_alen) == -1) { in main() [all …]
|