qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] tap-bsd: OpenBSD uses tap(4) now


From: Brad Smith
Subject: [Qemu-devel] [PATCH] tap-bsd: OpenBSD uses tap(4) now
Date: Sun, 25 Sep 2016 21:58:33 -0400
User-agent: Mutt/1.6.2 (2016-07-01)

Update the tap-bsd code now that OpenBSD uses tap(4).

Signed-off-by: Brad Smith <address@hidden>


diff --git a/net/tap-bsd.c b/net/tap-bsd.c
index c506ac3..8d0f049 100644
--- a/net/tap-bsd.c
+++ b/net/tap-bsd.c
@@ -55,11 +55,7 @@ int tap_open(char *ifname, int ifname_size, int *vnet_hdr,
         if (*ifname) {
             snprintf(dname, sizeof dname, "/dev/%s", ifname);
         } else {
-#if defined(__OpenBSD__)
-            snprintf(dname, sizeof dname, "/dev/tun%d", i);
-#else
             snprintf(dname, sizeof dname, "/dev/tap%d", i);
-#endif
         }
         TFR(fd = open(dname, O_RDWR));
         if (fd >= 0) {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]