Received: from eggs.gnu.org ([2001:4830:134:3::10]:33777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boLCX-0004E7-65 for qemu-devel@nongnu.org; Sun, 25 Sep 2016 21:59:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boLCR-0007wl-CH for qemu-devel@nongnu.org; Sun, 25 Sep 2016 21:59:24 -0400 Received: from speedy.comstyle.com ([2001:470:1d:8c::2]:15446 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boLCR-0007oh-4y for qemu-devel@nongnu.org; Sun, 25 Sep 2016 21:59:19 -0400 Received: from mail.comstyle.com (localhost [127.0.0.1]) by mail.comstyle.com (Postfix) with ESMTP id 838D49882E for ; Sun, 25 Sep 2016 21:59:11 -0400 (EDT) Received: from humpty.home.comstyle.com (CPE80ee73768e89-CMbc4dfbc8cbe0.cpe.net.cable.rogers.com [99.226.98.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id 5EA8B9882D for ; Sun, 25 Sep 2016 21:59:11 -0400 (EDT) Date: Sun, 25 Sep 2016 21:58:33 -0400 From: Brad Smith Message-ID: <20160926015829.GA71916@humpty.home.comstyle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] tap-bsd: OpenBSD uses tap(4) now List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Update the tap-bsd code now that OpenBSD uses tap(4). Signed-off-by: Brad Smith 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) {