Home
last modified time | relevance | path

Searched refs:sockfdlist (Results 1 – 1 of 1) sorted by relevance

/linux-3.4.99/drivers/staging/usbip/userspace/src/
Dusbipd.c353 static int listen_all_addrinfo(struct addrinfo *ai_head, int sockfdlist[]) in listen_all_addrinfo() argument
359 sockfdlist[nsockfd] = socket(ai->ai_family, ai->ai_socktype, in listen_all_addrinfo()
361 if (sockfdlist[nsockfd] < 0) in listen_all_addrinfo()
364 usbip_net_set_reuseaddr(sockfdlist[nsockfd]); in listen_all_addrinfo()
365 usbip_net_set_nodelay(sockfdlist[nsockfd]); in listen_all_addrinfo()
367 if (sockfdlist[nsockfd] >= FD_SETSIZE) { in listen_all_addrinfo()
368 close(sockfdlist[nsockfd]); in listen_all_addrinfo()
369 sockfdlist[nsockfd] = -1; in listen_all_addrinfo()
373 ret = bind(sockfdlist[nsockfd], ai->ai_addr, ai->ai_addrlen); in listen_all_addrinfo()
375 close(sockfdlist[nsockfd]); in listen_all_addrinfo()
[all …]