Home
last modified time | relevance | path

Searched refs:tunnel_fd (Results 1 – 4 of 4) sorted by relevance

/external/ppp/pppd/plugins/pppol2tp-android/
Dpppol2tp-android.c30 static int tunnel_fd = -1; variable
39 { "tunnel_fd", o_int, &tunnel_fd,
106 if (tunnel_fd != -1) { in pppol2tp_disconnect()
107 close(tunnel_fd); in pppol2tp_disconnect()
108 tunnel_fd = -1; in pppol2tp_disconnect()
/external/mtpd/
Dl2tp.c419 int tunnel_fd; in create_pppox_ol2tp() local
425 tunnel_fd = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OL2TP); in create_pppox_ol2tp()
426 if (tunnel_fd < 0) { in create_pppox_ol2tp()
441 if (connect(tunnel_fd, (struct sockaddr *)&tunnel_sa, in create_pppox_ol2tp()
470 *tfd = tunnel_fd; in create_pppox_ol2tp()
610 int tunnel_fd, session_fd; in l2tp_process() local
612 create_pppox_ol2tp(&tunnel_fd, &session_fd); in l2tp_process()
613 start_pppd_ol2tp(tunnel_fd, session_fd, in l2tp_process()
Dmtpd.c359 void start_pppd_ol2tp(int tunnel_fd, int session_fd, int tunnel_id, in start_pppd_ol2tp() argument
368 tunnel_fd, session_fd); in start_pppd_ol2tp()
382 snprintf(tunnel_fd_str, FD_MAX_LEN + 1, "%d", tunnel_fd); in start_pppd_ol2tp()
419 close(tunnel_fd); in start_pppd_ol2tp()
Dmtpd.h73 void start_pppd_ol2tp(int tunnel_fd, int session_fd, int tunnel_id,