Module Name:    src
Committed By:   pooka
Date:           Sun Jan  9 12:20:54 UTC 2011

Modified Files:
        src/sys/rump/net/lib/libnet: component.c

Log Message:
Separate interface init and domain adding.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/rump/net/lib/libnet/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.7 src/sys/rump/net/lib/libnet/component.c:1.8
--- src/sys/rump/net/lib/libnet/component.c:1.7	Wed Dec  8 18:06:43 2010
+++ src/sys/rump/net/lib/libnet/component.c	Sun Jan  9 12:20:53 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: component.c,v 1.7 2010/12/08 18:06:43 pooka Exp $	*/
+/*	$NetBSD: component.c,v 1.8 2011/01/09 12:20:53 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.7 2010/12/08 18:06:43 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.8 2011/01/09 12:20:53 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/domain.h>
@@ -40,15 +40,18 @@
 #include "rump_private.h"
 #include "rump_net_private.h"
 
-extern void bridgeattach(int);
-
-RUMP_COMPONENT(RUMP_COMPONENT_NET_ROUTE)
+RUMP_COMPONENT(RUMP_COMPONENT_NET)
 {
-	extern struct domain routedomain, linkdomain;
 
 	ifinit1();
 	ifinit();
 	loopattach(1);
+}
+
+RUMP_COMPONENT(RUMP_COMPONENT_NET_ROUTE)
+{
+	extern struct domain routedomain, linkdomain;
+
 	DOMAINADD(linkdomain);
 	DOMAINADD(routedomain);
 }

Reply via email to