Lines Matching refs:ptn

1544 	union ppptun_name ptn;  in add_new_dev()  local
1546 (void) snprintf(ptn.ptn_name, sizeof (ptn.ptn_name), "%s:pppoed", in add_new_dev()
1548 if (strioctl(tunfd, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) { in add_new_dev()
1549 logerr("PPPTUN_SCTL %s: %s", ptn.ptn_name, mystrerror(errno)); in add_new_dev()
1551 logdbg("added %s", ptn.ptn_name); in add_new_dev()
1562 union ppptun_name ptn; in rem_old_dev() local
1564 (void) snprintf(ptn.ptn_name, sizeof (ptn.ptn_name), "%s:pppoed", in rem_old_dev()
1566 if (strioctl(tunfd, PPPTUN_DCTL, &ptn, sizeof (ptn), 0) < 0) { in rem_old_dev()
1567 logerr("PPPTUN_DCTL %s: %s", ptn.ptn_name, mystrerror(errno)); in rem_old_dev()
1569 logdbg("removed %s", ptn.ptn_name); in rem_old_dev()
1586 union ppptun_name ptn; in get_device_list() local
1593 ptn.ptn_index = i; in get_device_list()
1594 if (strioctl(tunfd, PPPTUN_GNNAME, &ptn, sizeof (ptn), in get_device_list()
1595 sizeof (ptn)) < 0) { in get_device_list()
1599 if (ptn.ptn_name[0] == '\0') in get_device_list()
1601 if ((cp = strchr(ptn.ptn_name, ':')) == NULL || in get_device_list()
1607 strlen(ptn.ptn_name) + 1); in get_device_list()
1611 (void) strcpy((char *)(dlp + 1), ptn.ptn_name); in get_device_list()
2082 union ppptun_name ptn; in launch_service() local
2116 (void) snprintf(ptn.ptn_name, sizeof (ptn.ptn_name), "%.*s:pppoe", in launch_service()
2118 if (strioctl(newtun, PPPTUN_SDATA, &ptn, sizeof (ptn), 0) < 0) in launch_service()
2120 (void) snprintf(ptn.ptn_name, sizeof (ptn.ptn_name), "%.*s:pppoed", in launch_service()
2122 if (strioctl(newtun, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) in launch_service()