Module Name: src
Committed By: pooka
Date: Wed Dec 8 18:06:59 UTC 2010
Modified Files:
src/sys/rump/librump/rumpnet: net_stub.c
Log Message:
add weak stubs for bridge (not the game)
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/rump/librump/rumpnet/net_stub.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/librump/rumpnet/net_stub.c
diff -u src/sys/rump/librump/rumpnet/net_stub.c:1.9 src/sys/rump/librump/rumpnet/net_stub.c:1.10
--- src/sys/rump/librump/rumpnet/net_stub.c:1.9 Wed Dec 8 01:22:55 2010
+++ src/sys/rump/librump/rumpnet/net_stub.c Wed Dec 8 18:06:58 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: net_stub.c,v 1.9 2010/12/08 01:22:55 joerg Exp $ */
+/* $NetBSD: net_stub.c,v 1.10 2010/12/08 18:06:58 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: net_stub.c,v 1.9 2010/12/08 01:22:55 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: net_stub.c,v 1.10 2010/12/08 18:06:58 pooka Exp $");
#include <sys/param.h>
#include <sys/protosw.h>
@@ -43,7 +43,7 @@
__rumpnet_stub(void)
{
- panic("rumpnet stubs only, linking against librumpnet_net required");
+ panic("component not available");
}
__weak_alias(rtioctl,__rumpnet_stub);
__weak_alias(rt_walktree,__rumpnet_stub);
@@ -55,6 +55,16 @@
__weak_alias(route_enqueue,__rumpnet_stub);
__weak_alias(route_cb,__rumpnet_stub);
+/*
+ * Weak symbols so that we can optionally leave components out.
+ * (would be better to fix sys/net* to be more modular, though)
+ */
+
+/* bridge */
+__weak_alias(bridge_ifdetach,__rumpnet_stub);
+__weak_alias(bridge_output,__rumpnet_stub);
+__weak_alias(bridge_input,__rumpnet_stub);
+
struct ifnet_head ifnet;
u_long