Use ppp%d as PPP interface name instead of tun%d

This commit is contained in:
Marcel Holtmann 2010-03-31 22:29:43 -07:00
parent 389eb70dc8
commit f081de4ea6
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ void ppp_net_open(struct ppp_net_data *data)
memset(&ifr, 0, sizeof(ifr));
ifr.ifr_flags = IFF_TUN | IFF_NO_PI;
strcpy(ifr.ifr_name, "ppp%d");
err = ioctl(fd, TUNSETIFF, (void *)&ifr);
if (err < 0) {
g_printerr("error %d setting ifr\n", err);