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.


Fix to VNET bug when vnet_host_hooks is not properly initiated
[palacios-OLD.git] / palacios / include / palacios / vmm_ethernet.h
index ca3034b..1ca3713 100644 (file)
@@ -31,8 +31,9 @@
 
 #define MAX_PACKET_LEN (ETHERNET_HEADER_LEN + MAX_MTU)
 
-
-extern int vnet_debug;
+#ifdef V3_CONFIG_VNET
+extern int net_debug;
+#endif
 
 #ifdef __V3VEE__
 
@@ -40,7 +41,7 @@ extern int vnet_debug;
 
 #define V3_Net_Print(level, fmt, args...)                                      \
     do {                                                               \
-       if(level <= vnet_debug) {   \
+       if(level <= net_debug) {   \
            extern struct v3_os_hooks * os_hooks;                       \
            if ((os_hooks) && (os_hooks)->print) {                      \
                (os_hooks)->print((fmt), ##args);                       \