This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bridge test code in OpenBSD


On Thu, Sep 25, 2003 at 03:57:00PM +0200, Manu Sharma wrote:
> Hi,
> 
> It seems that the test code in bridge.c is dependent on definition
> of CYGPKG_NET_BRIDGE, but CYGPKG_NET_BRIDGE has a 'no_define'
> directive associated with it in file openbsd_net.cdl which
> suppresses its definition in the generated header. As an end result,
> the running the test produces a print "No bridge support available".

Hi Manu

I fixed it in a different way. I instead modified the test program to
look for CYGINT_NET_BRIDGE_HANDLER. Doing it this way the bridge test
program will be build for the build in bridge code or any other bridge
package which implements the interface.

        Andrew

Index: net/common/current//ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/ChangeLog,v
retrieving revision 1.41
diff -u -r1.41 ChangeLog
--- net/common/current//ChangeLog       16 Sep 2003 22:05:05 -0000      1.41
+++ net/common/current//ChangeLog       6 Oct 2003 19:05:58 -0000
@@ -1,3 +1,8 @@
+2003-10-06  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+       * tests/bridge.c: Build the test when we have the bridge
+       handler code enabled and so presumably a bridge.
+
 2003-09-16  Jay Foster  <jay@systech.com>
   
        * src/ifaddrs.c (getifaddrs): Fix up allocation and freeing of
Index: net/common/current//tests/bridge.c
===================================================================
RCS file: /cvs/ecos/ecos-opt/net/net/common/current/tests/bridge.c,v
retrieving revision 1.2
diff -u -r1.2 bridge.c
--- net/common/current//tests/bridge.c  31 May 2002 01:05:55 -0000      1.2
+++ net/common/current//tests/bridge.c  6 Oct 2003 19:06:00 -0000
@@ -67,7 +67,7 @@
 #include <network.h>
 #include <sys/types.h>
 #include <stdlib.h>
-#ifdef CYGPKG_NET_BRIDGE
+#ifdef CYGPKG_NET_BRIDGE_HANDLER
 #include <net/if.h>
 #include <net/if_dl.h>
 #include <netinet/in.h>
@@ -984,7 +984,7 @@
   printf("cyg_user_start done\n");
 }
  
-#else // CYGPKG_NET_BRIDGE
+#else // CYGPKG_NET_BRIDGE_HANDLER
  
 void
 cyg_user_start(void) {


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]