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/libnet Separate interface init and domain a...
details: https://anonhg.NetBSD.org/src/rev/fb84340d7b8e
branches: trunk
changeset: 760613:fb84340d7b8e
user: pooka <pooka%NetBSD.org@localhost>
date: Sun Jan 09 12:20:53 2011 +0000
description:
Separate interface init and domain adding.
diffstat:
sys/rump/net/lib/libnet/component.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 5e3c2bff15eb -r fb84340d7b8e sys/rump/net/lib/libnet/component.c
--- a/sys/rump/net/lib/libnet/component.c Sun Jan 09 12:20:10 2011 +0000
+++ b/sys/rump/net/lib/libnet/component.c Sun Jan 09 12:20:53 2011 +0000
@@ -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)
+{
+
+ ifinit1();
+ ifinit();
+ loopattach(1);
+}
RUMP_COMPONENT(RUMP_COMPONENT_NET_ROUTE)
{
extern struct domain routedomain, linkdomain;
- ifinit1();
- ifinit();
- loopattach(1);
DOMAINADD(linkdomain);
DOMAINADD(routedomain);
}
Home |
Main Index |
Thread Index |
Old Index