Searched refs:tunfd (Results 1 - 3 of 3) sorted by relevance
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | pppoed.h | 42 extern void parse_options(int tunfd, int argc, char **argv); 45 extern int launch_service(int tunfd, poep_t *poep, void *srvp,
|
H A D | pppoed.c | 48 static int tunfd; /* Global connection to tunnel device */ variable 90 tunfd = open(tunnam, O_RDWR); 91 if (tunfd == -1) { 104 if (strioctl(tunfd, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < 120 if (fd != tunfd) 176 parse_options(tunfd, main_argc, main_argv); 294 if (putmsg(tunfd, &ctrl, &data, 0) < 0) { 362 if (strioctl(tunfd, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) { 368 if (launch && launch_service(tunfd, poep, srvp, ptc)) 376 if (putmsg(tunfd, [all...] |
H A D | pppoec.c | 76 static int tunfd; /* open connection to sppptun driver */ variable 383 if (strioctl(tunfd, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < 392 if (strioctl(tunfd, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) { 437 tunfd = 0; 605 if (putmsg(tunfd, &ctrl, &data, 0) < 0) { 677 if (pppoec_getmsg(tunfd, &ctrl, &data, &flags) < 0) 1091 if (strioctl(tunfd, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < 1105 if (strioctl(tunfd, PPPTUN_SDATA, &ptn, sizeof (ptn), 0) < 0) { 1427 pfd[0].fd = tunfd; 1470 if (pppoec_getmsg(tunfd, [all...] |
Completed in 48 milliseconds