Searched refs:sock_gre (Results 1 – 2 of 2) sorted by relevance
| /openbsd/src/usr.sbin/npppd/pptp/ |
| D | pptpd.c | 157 PPTPD_ASSERT(plstn->sock_gre == -1); in pptpd_add_listener() 202 plistener->sock_gre = -1; in pptpd_add_listener() 232 PPTPD_ASSERT(plstn->sock_gre == -1); in pptpd_uninit() 291 int sock, ival, sock_gre; in pptpd_listener_start() local 298 sock_gre = -1; in pptpd_listener_start() 341 if ((sock_gre = priv_socket(AF_INET, SOCK_RAW, IPPROTO_GRE)) < 0) { in pptpd_listener_start() 348 if (setsockopt(sock_gre, IPPROTO_IP, IP_STRICT_RCVIF, &ival, in pptpd_listener_start() 355 if (setsockopt(sock_gre, IPPROTO_IP, IP_PIPEX, &ival, sizeof(ival)) in pptpd_listener_start() 360 if ((ival = fcntl(sock_gre, F_GETFL)) < 0) { in pptpd_listener_start() 364 } else if (fcntl(sock_gre, F_SETFL, ival | O_NONBLOCK) < 0) { in pptpd_listener_start() [all …]
|
| D | pptp.h | 231 int sock_gre; /* GRE socket */ member 255 (ctrl)->listener_index))->sock_gre
|