Module Name: src
Committed By: jym
Date: Sun Apr 3 23:21:37 UTC 2011
Modified Files:
src/sys/arch/xen/xen: xennetback_xenbus.c
Log Message:
Now that pkgsrc-2011Q1 has arrived, and before -6 chimes in, change
ifxname for xvif(4) from xvif%d.%d to xvif%d-%d. This is needed
to avoid sysctl(9) EINVAL errors when creating interface nodes.
See http://mail-index.netbsd.org/port-xen/2011/01/11/msg006405.html
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/xen/xen/xennetback_xenbus.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/xen/xen/xennetback_xenbus.c
diff -u src/sys/arch/xen/xen/xennetback_xenbus.c:1.38 src/sys/arch/xen/xen/xennetback_xenbus.c:1.39
--- src/sys/arch/xen/xen/xennetback_xenbus.c:1.38 Tue Jan 18 21:34:31 2011
+++ src/sys/arch/xen/xen/xennetback_xenbus.c Sun Apr 3 23:21:37 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: xennetback_xenbus.c,v 1.38 2011/01/18 21:34:31 jym Exp $ */
+/* $NetBSD: xennetback_xenbus.c,v 1.39 2011/04/03 23:21:37 jym Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -271,7 +271,7 @@
ifp = &xneti->xni_if;
ifp->if_softc = xneti;
- snprintf(ifp->if_xname, IFNAMSIZ, "xvif%d.%d",
+ snprintf(ifp->if_xname, IFNAMSIZ, "xvif%d-%d",
(int)domid, (int)handle);
/* read mac address */