--- vl.c.original Sun Nov 23 21:18:57 2008 +++ vl.c Wed Nov 26 19:51:03 2008 @@ -3966,11 +3966,15 @@ if( ip_fd ) close(ip_fd); +/* Pavel Dufek - block out all other Solaris tun/tap code; only basic open and + PPA assign left active */ +#ifdef NEVERDEF TFR(ip_fd = open("/dev/udp", O_RDWR, 0)); if (ip_fd < 0) { syslog(LOG_ERR, "Can't open /dev/ip (actually /dev/udp)"); return -1; } +#endif /* NEVERDEF */ TFR(tap_fd = open("/dev/tap", O_RDWR, 0)); if (tap_fd < 0) { @@ -3986,6 +3990,7 @@ if ((ppa = ioctl (tap_fd, I_STR, &strioc_ppa)) < 0) syslog (LOG_ERR, "Can't assign new interface"); +#ifdef NEVERDEF TFR(if_fd = open("/dev/tap", O_RDWR, 0)); if (if_fd < 0) { syslog(LOG_ERR, "Can't open /dev/tap (2)"); @@ -4053,6 +4058,7 @@ ioctl (ip_fd, I_PUNLINK, ip_muxid); syslog (LOG_ERR, "Can't set multiplexor id"); } +#endif /* NEVERDEF */ sprintf(dev, "tap%d", ppa); return tap_fd;