Searched refs:tunfd (Results 1 – 4 of 4) sorted by relevance
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | pppoed.c | 48 static int tunfd; /* Global connection to tunnel device */ variable 90 tunfd = open(tunnam, O_RDWR); in open_tunnel_dev() 91 if (tunfd == -1) { in open_tunnel_dev() 104 if (strioctl(tunfd, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < in open_tunnel_dev() 120 if (fd != tunfd) in fdcloser() 176 parse_options(tunfd, main_argc, main_argv); in handle_hup() 294 if (putmsg(tunfd, &ctrl, &data, 0) < 0) { in handle_input() 362 if (strioctl(tunfd, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) { in handle_input() 368 if (launch && launch_service(tunfd, poep, srvp, ptc)) in handle_input() 376 if (putmsg(tunfd, &ctrl, &data, 0) < 0) { in handle_input() [all …]
|
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 | pppoec.c | 76 static int tunfd; /* open connection to sppptun driver */ variable 383 if (strioctl(tunfd, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < in set_control() 392 if (strioctl(tunfd, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) { in set_control() 437 tunfd = 0; in check_stdin() 605 if (putmsg(tunfd, &ctrl, &data, 0) < 0) { in send_pppoe() 677 if (pppoec_getmsg(tunfd, &ctrl, &data, &flags) < 0) in find_all_servers() 1091 if (strioctl(tunfd, PPPTUN_SPEER, &ptp, sizeof (ptp), sizeof (ptp)) < in act_open() 1105 if (strioctl(tunfd, PPPTUN_SDATA, &ptn, sizeof (ptn), 0) < 0) { in act_open() 1427 pfd[0].fd = tunfd; in find_server() 1470 if (pppoec_getmsg(tunfd, &ctrl, &data, &flags) < 0) in find_server() [all …]
|
H A D | options.c | 1542 add_new_dev(int tunfd, const char *dname) in add_new_dev() argument 1548 if (strioctl(tunfd, PPPTUN_SCTL, &ptn, sizeof (ptn), 0) < 0) { in add_new_dev() 1560 rem_old_dev(int tunfd, const char *dname) in rem_old_dev() argument 1566 if (strioctl(tunfd, PPPTUN_DCTL, &ptn, sizeof (ptn), 0) < 0) { in rem_old_dev() 1578 get_device_list(struct parse_state *psp, int tunfd) in get_device_list() argument 1594 if (strioctl(tunfd, PPPTUN_GNNAME, &ptn, sizeof (ptn), in get_device_list() 1662 parse_options(int tunfd, int argc, char **argv) in parse_options() argument 1691 get_device_list(&pstate, tunfd); in parse_options() 1782 add_new_dev(tunfd, newdep->de_name); in parse_options() 1789 add_new_dev(tunfd, newdep->de_name); in parse_options() [all …]
|