Home
last modified time | relevance | path

Searched refs:pptp_fd (Results 1 – 3 of 3) sorted by relevance

/external/mtpd/
Dpptp.c384 int pptp_fd; in create_pppox_pptp() local
402 pptp_fd = socket(AF_PPPOX, SOCK_STREAM, PX_PROTO_PPTP); in create_pppox_pptp()
403 if (pptp_fd < 0) { in create_pppox_pptp()
408 if (bind(pptp_fd, (struct sockaddr*)&src, sizeof(src))) { in create_pppox_pptp()
410 close(pptp_fd); in create_pppox_pptp()
414 if (connect(pptp_fd, (struct sockaddr*)&dst, sizeof(dst))) { in create_pppox_pptp()
416 close(pptp_fd); in create_pppox_pptp()
420 return pptp_fd; in create_pppox_pptp()
Dmtpd.c427 void start_pppd_pptp(int pptp_fd) in start_pppd_pptp() argument
434 log_print(INFO, "Starting pppd (pptp_fd = %d)", pptp_fd); in start_pppd_pptp()
445 snprintf(pptp_fd_str, FD_MAX_LEN + 1, "%d", pptp_fd); in start_pppd_pptp()
472 close(pptp_fd); in start_pppd_pptp()
Dmtpd.h75 void start_pppd_pptp(int pptp_fd);