Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen Now that pkgsrc-2011Q1 has arrived, and bef...



details:   https://anonhg.NetBSD.org/src/rev/20579d602840
branches:  trunk
changeset: 763770:20579d602840
user:      jym <jym%NetBSD.org@localhost>
date:      Sun Apr 03 23:21:37 2011 +0000

description:
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

diffstat:

 sys/arch/xen/xen/xennetback_xenbus.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r f7a75fb23a28 -r 20579d602840 sys/arch/xen/xen/xennetback_xenbus.c
--- a/sys/arch/xen/xen/xennetback_xenbus.c      Sun Apr 03 23:07:19 2011 +0000
+++ b/sys/arch/xen/xen/xennetback_xenbus.c      Sun Apr 03 23:21:37 2011 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index