Lines Matching refs:pti
187 struct ppptun_info pti; in plumb_it() local
255 if (snprintf(pti.pti_name, sizeof (pti.pti_name), "%s:%s", in plumb_it()
256 adata.appstr, prot->name) >= sizeof (pti.pti_name)) { in plumb_it()
266 pti.pti_name); in plumb_it()
267 if (strioctl(devfd, PPPTUN_SNAME, pti.pti_name, in plumb_it()
268 sizeof (pti.pti_name), 0, "PPPTUN_SNAME") < 0) { in plumb_it()
271 "installed\n"), myname, pti.pti_name); in plumb_it()
310 pti.pti_muxid = muxid; in plumb_it()
311 pti.pti_style = prot->style; in plumb_it()
312 if (strioctl(muxfd, PPPTUN_SINFO, &pti, sizeof (pti), 0, in plumb_it()
317 (void) printf(gettext("done; installed %s\n"), pti.pti_name); in plumb_it()
319 (void) puts(pti.pti_name); in plumb_it()
333 struct ppptun_info pti; in unplumb_it() local
355 (void) strncpy(pti.pti_name, ifname, sizeof (pti.pti_name)); in unplumb_it()
356 if (strioctl(muxfd, PPPTUN_GINFO, &pti, sizeof (pti), in unplumb_it()
357 sizeof (pti), "PPPTUN_GINFO") < 0) in unplumb_it()
361 pti.pti_muxid); in unplumb_it()
366 if (ioctl(muxfd, I_PUNLINK, pti.pti_muxid) < 0) { in unplumb_it()