Module Name: src
Committed By: pooka
Date: Tue Jan 11 09:24:06 UTC 2011
Modified Files:
src/sys/rump/net/lib/libnet: component.c
src/sys/rump/net/lib/libnetinet: component.c
Log Message:
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
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/rump/net/lib/libnet/component.c
cvs rdiff -u -r1.4 -r1.5 src/sys/rump/net/lib/libnetinet/component.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/rump/net/lib/libnet/component.c
diff -u src/sys/rump/net/lib/libnet/component.c:1.8 src/sys/rump/net/lib/libnet/component.c:1.9
--- src/sys/rump/net/lib/libnet/component.c:1.8 Sun Jan 9 12:20:53 2011
+++ src/sys/rump/net/lib/libnet/component.c Tue Jan 11 09:24:05 2011
@@ -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);
+}
Index: src/sys/rump/net/lib/libnetinet/component.c
diff -u src/sys/rump/net/lib/libnetinet/component.c:1.4 src/sys/rump/net/lib/libnetinet/component.c:1.5
--- src/sys/rump/net/lib/libnetinet/component.c:1.4 Sun Jan 9 12:22:34 2011
+++ src/sys/rump/net/lib/libnetinet/component.c Tue Jan 11 09:24:06 2011
@@ -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;