Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Support for lwIP switch on/off in Makefile
[palacios.git] / geekos / src / geekos / net.c
index 7067a38..ceb41c1 100644 (file)
@@ -5,6 +5,10 @@
 #include <geekos/net.h>
 #include <geekos/socket.h>
 #include <geekos/ne2k.h>
+#include <geekos/debug.h>
+
+#ifdef LWIP
+
 #include <lwip/apps/ping.h>
 #include <lwip/lwip/sockets.h>
 #include <lwip/ipv4/lwip/ip_addr.h>
@@ -13,7 +17,6 @@
 #include <lwip/netifapi.h>
 #include <lwip/tcpip.h>
 #include <netif/etharp.h>
-#include <geekos/debug.h>
 
 
 static void
@@ -24,11 +27,14 @@ tcpip_init_done(void *arg)
   sys_sem_signal(*sem);
 }
 
+#endif
+
 void Init_Network() {
 
   //temporay now we are using lwip sockets
   // init_socket_layer();
-  
+
+#ifdef LWIP  
   struct ip_addr ipaddr, netmask, gateway;
   sys_sem_t sem;
   err_t err;
@@ -65,6 +71,9 @@ void Init_Network() {
 
   //initial a network application
   ping_init();
+
+#endif
+
 }