From ba2abc6e69e03e0344fec459fb27a96369f0867d Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Mon, 5 Jun 2006 13:00:34 +0000 Subject: [PATCH] use dns0 on linux --- tun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tun.c b/tun.c index 97fd53a..13ad658 100644 --- a/tun.c +++ b/tun.c @@ -56,7 +56,7 @@ open_tun() ifreq.ifr_flags = IFF_TUN; for (i = 0; i < TUN_MAX_TRY; i++) { - snprintf(ifreq.ifr_name, IFNAMSIZ, "tun%d", i); + snprintf(ifreq.ifr_name, IFNAMSIZ, "dns%d", i); if (ioctl(tun_fd, TUNSETIFF, (void *) &ifreq) != -1) { printf("opened %s\n", ifreq.ifr_name);