From: Sapan Bhatia Date: Wed, 20 Jun 2012 14:21:58 +0000 (-0400) Subject: pltun should create TUN not TAP interfaces X-Git-Tag: vsys-scripts-0.95-42~1 X-Git-Url: http://git.onelab.eu/?p=vsys-scripts.git;a=commitdiff_plain;h=0d2dadd8ffce4fb1f1de7270766b65d748a04b30 pltun should create TUN not TAP interfaces --- diff --git a/support/pltun.c b/support/pltun.c index 49e2d7e..2b0c9d6 100644 --- a/support/pltun.c +++ b/support/pltun.c @@ -12,7 +12,7 @@ int main(void) char if_name[IFNAMSIZ]; - int tun_fd = tun_alloc(IFF_TAP, if_name); + int tun_fd = tun_alloc(IFF_TUN, if_name); printf("Allocated tap device: %s fd=%d\n", if_name, tun_fd);