Lines Matching refs:newtun
2080 int newtun; in launch_service() local
2096 newtun = open(tunnam, O_RDWR); in launch_service()
2097 if (newtun == -1) in launch_service()
2104 if (strioctl(newtun, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < in launch_service()
2108 if (strioctl(newtun, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < in launch_service()
2118 if (strioctl(newtun, PPPTUN_SDATA, &ptn, sizeof (ptn), 0) < 0) in launch_service()
2122 if (strioctl(newtun, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) in launch_service()
2172 if (newtun != 0 && dup2(newtun, 0) < 0) in launch_service()
2174 if (newtun != 1 && dup2(newtun, 1) < 0) in launch_service()
2176 if (newtun > 1) in launch_service()
2177 (void) close(newtun); in launch_service()
2212 newtun = 0; in launch_service()
2232 if (putmsg(newtun, &ctrl, &data, 0) < 0) { in launch_service()
2239 (void) close(newtun); in launch_service()
2248 if (newtun >= 0) in launch_service()
2249 (void) close(newtun); in launch_service()