Searched refs:listen_sockfd (Results 1 - 4 of 4) sorted by relevance
/macosx-10.10.1/ppp-786.1.1/Drivers/PPPoE/PPPoE-vpn/ |
H A D | main.c | 87 static int listen_sockfd = -1; variable 301 while ((listen_sockfd = socket (PF_PPP, SOCK_DGRAM, PPPPROTO_PPPOE)) < 0) { 308 if (setsockopt(listen_sockfd, PPPPROTO_PPPOE, PPPOE_OPT_INTERFACE, device, strlen(device))) { 323 if (bind(listen_sockfd, (struct sockaddr *)&addr, sizeof(struct sockaddr_pppoe)) < 0) { 330 while (listen(listen_sockfd, SOMAXCONN) < 0) { 337 return listen_sockfd; 340 if (listen_sockfd!= -1) { 341 close(listen_sockfd); 342 listen_sockfd = -1; 359 if ((fdConn = pppoe_sys_accept(listen_sockfd, sapSende [all...] |
/macosx-10.10.1/ppp-786.1.1/Drivers/PPTP/PPTP-vpn/ |
H A D | main.c | 80 static int listen_sockfd = -1; variable 247 while ((listen_sockfd = socket (AF_INET, SOCK_STREAM, 0)) < 0) 254 // while (fcntl(listen_sockfd, F_SETFD, 1) == -1) 265 setsockopt(listen_sockfd, SOL_SOCKET, SO_REUSEADDR, &val, sizeof(val)); 267 while (bind(listen_sockfd, (struct sockaddr *) &addrListener, sizeof (addrListener)) < 0) 274 while (listen(listen_sockfd, SOMAXCONN) < 0) 280 return listen_sockfd; 295 if ((fdConn = pptp_sys_accept(listen_sockfd, sapSender, &nSize)) < 0) 321 if ((fdConn = pptp_sys_accept(listen_sockfd, sapSender, &nSize)) < 0) 335 if (listen_sockfd ! [all...] |
/macosx-10.10.1/ppp-786.1.1/Drivers/L2TP/L2TP-vpn/ |
H A D | main.c | 92 static int listen_sockfd = -1; variable 144 while ((listen_sockfd = socket(PF_PPP, SOCK_DGRAM, PPPPROTO_L2TP)) < 0) 147 if (listen_sockfd < 0) { 165 while ((listen_sockfd = socket(PF_PPP, SOCK_DGRAM, PPPPROTO_L2TP)) < 0) 170 if (listen_sockfd < 0) { 563 if (listen_sockfd <= 0) 566 //set_flag(listen_sockfd, kerneldebug & 1, L2TP_FLAG_DEBUG); 567 set_flag(listen_sockfd, 1, L2TP_FLAG_CONTROL); 568 set_flag(listen_sockfd, !opt_noipsec, L2TP_FLAG_IPSEC); 569 l2tp_set_delegated_process(listen_sockfd, getpi [all...] |
/macosx-10.10.1/ppp-786.1.1/Helpers/vpnd/ |
H A D | vpnplugins.c | 90 static int listen_sockfd = -1; variable 734 listen_sockfd = 0; 736 listen_sockfd = the_vpn_channel.listen(); // initialize the plugin and get listen socket 738 if (listen_sockfd < 0) { 743 if (listen_sockfd) { 744 FD_SET(listen_sockfd, &fds_save); 745 if (fdmax <= listen_sockfd) 746 fdmax = listen_sockfd + 1; 882 if (FD_ISSET (listen_sockfd, &fds)) {
|
Completed in 137 milliseconds