Revision: 509
          http://vde.svn.sourceforge.net/vde/?rev=509&view=rev
Author:   rd235
Date:     2011-11-07 09:29:44 +0000 (Mon, 07 Nov 2011)
Log Message:
-----------
NEW feature: contiki support

Modified Paths:
--------------
    trunk/vde-2/src/lib/libvdeplug.c

Added Paths:
-----------
    trunk/vde-2/contiki/
    trunk/vde-2/contiki/README
    trunk/vde-2/contiki/contiki-2.5+vde.tgz

Added: trunk/vde-2/contiki/README
===================================================================
--- trunk/vde-2/contiki/README                          (rev 0)
+++ trunk/vde-2/contiki/README  2011-11-07 09:29:44 UTC (rev 509)
@@ -0,0 +1,43 @@
+VDE support for Contiki
+
+---------------------------------
+INSTALL howto:
+
+- get the Contiki source distribution from 
+http://sourceforge.net/projects/contiki/files/Contiki/Contiki%202.5/
+- unzip it,
+- and add the vde support files to the source tree as follows.
+
+$ unzip contiki-2.5.zip
+$ tar zxvf contiki-2.5+vde.tgz
+---------------------------------
+
+The tar file includes: 
+the driver files for vde:
+  contiki-2.5/cpu/native/net/vdedev6.c
+  contiki-2.5/cpu/native/net/vdedev6.h
+  contiki-2.5/cpu/native/net/vdedev.c
+  contiki-2.5/cpu/native/net/vdedev-drv.c
+  contiki-2.5/cpu/native/net/vdedev-drv.h
+  contiki-2.5/cpu/native/net/vdedev.h
+
+a new platform: 
+  contiki-2.5/platform/minimal-net-vde
+
+and two examples (ipv4 and ipv6 web server running on vde)
+       contiki-2.5/examples/webserver-vde
+       contiki-2.5/examples/webserver-ipv6-vde
+
+To try the tests: go to the example dir, type "make" and run the executable.
+minimal-net-vde uses the default vde switch.
+(If you want to define your own default switch create a symbolic link
+ to your switch as ~/.vde2/stdsock, or on newer vde versions as
+ ~/vde2/default.switch:
+ e.g.
+        vde_switch -s /tmp/myvde.ctl 
+        ln -s /tmp/myvde.ctl ~/vde/stdsock
+ or
+        ln -s /tmp/myvde.ctl ~/vde/default.switch
+)
+
+Renzo Davoli November 2011

Added: trunk/vde-2/contiki/contiki-2.5+vde.tgz
===================================================================
(Binary files differ)


Property changes on: trunk/vde-2/contiki/contiki-2.5+vde.tgz
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: trunk/vde-2/src/lib/libvdeplug.c
===================================================================
--- trunk/vde-2/src/lib/libvdeplug.c    2011-11-06 10:54:23 UTC (rev 508)
+++ trunk/vde-2/src/lib/libvdeplug.c    2011-11-07 09:29:44 UTC (rev 509)
@@ -46,6 +46,8 @@
 /* Per-User standard switch definition */
 /* This will be prefixed by getenv("HOME") */
 /* it can be a symbolic link to the switch dir */
+#define STDSWITCH "/.vde2/default.switch"
+/* deprecated old name */
 #define STDSOCK "/.vde2/stdsock"
 
 #ifdef USE_IPN
@@ -176,9 +178,14 @@
                given_sockname = NULL;
                if (homedir) {
                        struct stat statbuf;
-                       snprintf(std_sockname, PATH_MAX, "%s%s", homedir, 
STDSOCK);
+                       snprintf(std_sockname, PATH_MAX, "%s%s", homedir, 
STDSWITCH);
                        if (lstat(std_sockname,&statbuf)==0)
                                given_sockname = std_sockname;
+                       else {
+                               snprintf(std_sockname, PATH_MAX, "%s%s", 
homedir, STDSOCK);
+                               if (lstat(std_sockname,&statbuf)==0)
+                                       given_sockname = std_sockname;
+                       }
                }
        } else {
                char *split;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
vde-users mailing list
vde-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vde-users

Reply via email to