Fix -net tap,ifname=/dev/tunX support.

Bump PKGNAME.
OK todd@
This commit is contained in:
mpf 2008-09-22 15:17:54 +00:00
parent 509ee3de36
commit 76d0d4d827
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.36 2008/07/24 19:00:11 martynas Exp $ # $OpenBSD: Makefile,v 1.37 2008/09/22 15:17:54 mpf Exp $
# no success building on other archs yet # no success building on other archs yet
ONLY_FOR_ARCHS= amd64 i386 powerpc ONLY_FOR_ARCHS= amd64 i386 powerpc
@ -6,7 +6,7 @@ ONLY_FOR_ARCHS= amd64 i386 powerpc
COMMENT= multi system emulator COMMENT= multi system emulator
DISTNAME= qemu-0.9.1 DISTNAME= qemu-0.9.1
PKGNAME= ${DISTNAME}p3 PKGNAME= ${DISTNAME}p4
CATEGORIES= emulators CATEGORIES= emulators
HOMEPAGE= http://bellard.org/qemu/ HOMEPAGE= http://bellard.org/qemu/

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-vl_c,v 1.18 2008/06/19 05:51:17 todd Exp $ $OpenBSD: patch-vl_c,v 1.19 2008/09/22 15:17:54 mpf Exp $
--- vl.c.orig Sun Jan 6 13:38:42 2008 --- vl.c.orig Sun Jan 6 13:38:42 2008
+++ vl.c Tue Jun 17 19:48:00 2008 +++ vl.c Tue Jun 17 19:48:00 2008
@@ -61,7 +61,8 @@ @@ -61,7 +61,8 @@
@ -169,7 +169,7 @@ $OpenBSD: patch-vl_c,v 1.18 2008/06/19 05:51:17 todd Exp $
+ if (get_param_value(ifname, sizeof(ifname), "ifname", p) == 0) + if (get_param_value(ifname, sizeof(ifname), "ifname", p) == 0)
+ ret = net_tap_init(vlan, NULL, setup_script, down_script); + ret = net_tap_init(vlan, NULL, setup_script, down_script);
+ else + else
+ ret = net_tap_init(vlan, NULL, setup_script, down_script); + ret = net_tap_init(vlan, ifname, setup_script, down_script);
} }
} else } else
#endif #endif