Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/net/lib Ensure that a) loopback attaches after all ...



details:   https://anonhg.NetBSD.org/src/rev/6abb9d47271b
branches:  trunk
changeset: 760695:6abb9d47271b
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Jan 11 09:24:05 2011 +0000

description:
Ensure that a) loopback attaches after all the domains have attached
b) loopback is configured only after it has attached.

makes tests/net/if_loop work again

diffstat:

 sys/rump/net/lib/libnet/component.c     |  11 ++++++++---
 sys/rump/net/lib/libnetinet/component.c |   6 +++---
 2 files changed, 11 insertions(+), 6 deletions(-)

diffs (63 lines):

diff -r 4a5a64d4e4c7 -r 6abb9d47271b sys/rump/net/lib/libnet/component.c
--- a/sys/rump/net/lib/libnet/component.c       Tue Jan 11 09:22:32 2011 +0000
+++ b/sys/rump/net/lib/libnet/component.c       Tue Jan 11 09:24:05 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: component.c,v 1.8 2011/01/09 12:20:53 pooka Exp $      */
+/*     $NetBSD: component.c,v 1.9 2011/01/11 09:24:05 pooka Exp $      */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.8 2011/01/09 12:20:53 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.9 2011/01/11 09:24:05 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/domain.h>
@@ -45,7 +45,6 @@
 
        ifinit1();
        ifinit();
-       loopattach(1);
 }
 
 RUMP_COMPONENT(RUMP_COMPONENT_NET_ROUTE)
@@ -55,3 +54,9 @@
        DOMAINADD(linkdomain);
        DOMAINADD(routedomain);
 }
+
+RUMP_COMPONENT(RUMP_COMPONENT_NET_IF)
+{
+
+       loopattach(1);
+}
diff -r 4a5a64d4e4c7 -r 6abb9d47271b sys/rump/net/lib/libnetinet/component.c
--- a/sys/rump/net/lib/libnetinet/component.c   Tue Jan 11 09:22:32 2011 +0000
+++ b/sys/rump/net/lib/libnetinet/component.c   Tue Jan 11 09:24:05 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: component.c,v 1.4 2011/01/09 12:22:34 pooka Exp $      */
+/*     $NetBSD: component.c,v 1.5 2011/01/11 09:24:06 pooka Exp $      */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.4 2011/01/09 12:22:34 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.5 2011/01/11 09:24:06 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/domain.h>
@@ -55,7 +55,7 @@
        carpattach(1);
 }
 
-RUMP_COMPONENT(RUMP_COMPONENT_NET_IF)
+RUMP_COMPONENT(RUMP_COMPONENT_NET_IFCFG)
 {
        struct ifaliasreq ia;
        struct sockaddr_in *sin;



Home | Main Index | Thread Index | Old Index