Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/librump/rumpnet add weak stubs for bridge (not the ...



details:   https://anonhg.NetBSD.org/src/rev/18e282909eab
branches:  trunk
changeset: 759416:18e282909eab
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Dec 08 18:06:58 2010 +0000

description:
add weak stubs for bridge (not the game)

diffstat:

 sys/rump/librump/rumpnet/net_stub.c |  16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diffs (44 lines):

diff -r 820a984cad75 -r 18e282909eab sys/rump/librump/rumpnet/net_stub.c
--- a/sys/rump/librump/rumpnet/net_stub.c       Wed Dec 08 18:06:43 2010 +0000
+++ b/sys/rump/librump/rumpnet/net_stub.c       Wed Dec 08 18:06:58 2010 +0000
@@ -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



Home | Main Index | Thread Index | Old Index