Revision: 525
          http://vde.svn.sourceforge.net/vde/?rev=525&view=rev
Author:   danielel
Date:     2011-12-15 23:08:42 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
Added some copyleft info.
Added manpage.
Removed confusing commandline actions.

Modified Paths:
--------------
    branches/vde-router/vde-2/man/Makefile.am
    branches/vde-router/vde-2/src/vde_router/vde_headers.h
    branches/vde-router/vde-2/src/vde_router/vde_router.c
    branches/vde-router/vde-2/src/vde_router/vde_router.h
    branches/vde-router/vde-2/src/vde_router/vder_arp.c
    branches/vde-router/vde-2/src/vde_router/vder_arp.h
    branches/vde-router/vde-2/src/vde_router/vder_datalink.c
    branches/vde-router/vde-2/src/vde_router/vder_datalink.h
    branches/vde-router/vde-2/src/vde_router/vder_icmp.c
    branches/vde-router/vde-2/src/vde_router/vder_icmp.h
    branches/vde-router/vde-2/src/vde_router/vder_packet.c
    branches/vde-router/vde-2/src/vde_router/vder_packet.h
    branches/vde-router/vde-2/src/vde_router/vder_queue.c
    branches/vde-router/vde-2/src/vde_router/vder_queue.h

Added Paths:
-----------
    branches/vde-router/vde-2/man/vde_router.1

Modified: branches/vde-router/vde-2/man/Makefile.am
===================================================================
--- branches/vde-router/vde-2/man/Makefile.am   2011-12-15 17:48:17 UTC (rev 
524)
+++ branches/vde-router/vde-2/man/Makefile.am   2011-12-15 23:08:42 UTC (rev 
525)
@@ -1,4 +1,4 @@
-static_mans = dpipe.1 slirpvde.1 unixterm.1 vde_plug.1 vdeq.1 vde_switch.1 
wirefilter.1 vde_cryptcab.1 vde_plug2tap.1 vde_over_ns.1 vde_l3.1 vde_tunctl.8 
vde_autolink.1 unixcmd.1 vdeterm.1
+static_mans = dpipe.1 slirpvde.1 unixterm.1 vde_plug.1 vdeq.1 vde_switch.1 
wirefilter.1 vde_cryptcab.1 vde_plug2tap.1 vde_over_ns.1 vde_l3.1 vde_tunctl.8 
vde_autolink.1 unixcmd.1 vdeterm.1 vde_router.1
 if ENABLE_PCAP
   static_mans += vde_pcapplug.1
 endif

Added: branches/vde-router/vde-2/man/vde_router.1
===================================================================
--- branches/vde-router/vde-2/man/vde_router.1                          (rev 0)
+++ branches/vde-router/vde-2/man/vde_router.1  2011-12-15 23:08:42 UTC (rev 
525)
@@ -0,0 +1,61 @@
+.TH VDE_ROUTER 1 "December 16, 2011" "Virtual Distributed Ethernet"
+.SH NAME
+vde_router \- Virtual Distributed Ethernet Router.
+.SH SYNOPSIS
+.B vde_router
+\fB\-c\fI configfile\fR
+[\fB\-d\fI]
+[\fB\-M\fI mgmt_socket\fR]
+[\fB\-m\fI mgmt_mode\fR]
+[\fB\-p\fI pidfile\fR]
+.br
+.SH DESCRIPTION
+A
+\fBvde_router\fP 
+
+
+
+.SH OPTIONS
+.TP
+.B -d
+Daemonize the process and put in background.
+
+.TP
+.B -r \fIconfigfile\fR
+Parse configuration parameters from \fBconfigfile\fP at startup
+
+
+.TP
+.B -M \fImgmt_socket
+the unix socket where the parameters (interfaces addresses, routes, etc.) can 
be checked and
+changed runtime. \fBunixterm\fP(1) can be used as a remote terminal for 
wirefilter.
+
+.TP
+.B -m \fImgmt_mode
+Specify the permission for the access to \fBmgmt_socket\fP
+
+.TP
+.B -p \fIpidfile
+Save the process id to \fBpidfile\fP
+
+
+.SH NOTICE
+Virtual Distributed Ethernet is not related in any way with
+www.vde.com ("Verband der Elektrotechnik, Elektronik und Informationstechnik"
+i.e. the German "Association for Electrical, Electronic & Information
+Technologies").
+
+.SH SEE ALSO
+\fBvde_switch\fP(1),
+\fBvdeq\fP(1),
+\fBunixterm\fP(1),
+\fBvde_cryptcab\fP(1),
+\fBwirefilter\fP(1).
+.br
+.SH AUTHORS
+VDE_ROUTER is a tool by Daniele Lacamera <r...@danielinux.net>
+
+VDE is a project by Renzo Davoli <re...@cs.unibo.it>
+
+Red-Black Tree used to implement ARP tables is a free port to userspace from 
the Linux kernel, by Andrea Arcangeli and David Woodhouse. 
+

Modified: branches/vde-router/vde-2/src/vde_router/vde_headers.h
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vde_headers.h      2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vde_headers.h      2011-12-15 
23:08:42 UTC (rev 525)
@@ -2,9 +2,6 @@
  *
  * Licensed under the GPLv2
  *
- * This is a tiny v4 router that can be used to link 
- * together two or more vde switches.
- *
  */
 
 #ifndef __VDE_BUFF_H

Modified: branches/vde-router/vde-2/src/vde_router/vde_router.c
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vde_router.c       2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vde_router.c       2011-12-15 
23:08:42 UTC (rev 525)
@@ -1,3 +1,12 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ * Description: this module is just a frontend for command line,
+ * configuration, etc.
+ *
+ * For the router engine see vder_datalink.c
+ */
 #include "vder_datalink.h"
 #include "vde_router.h"
 #include "vder_queue.h"
@@ -57,8 +66,7 @@
                printoutc(fd, "ipfilter     show/change ip filtering 
configuration");
                printoutc(fd, "stats        print interface statistics");
                printoutc(fd, "logout       close current management session");
-               printoutc(fd, "shutdown     disconnect the vde_router and 
exit");
-               printoutc(fd, "quit         alias for \"shutdown\"");
+               printoutc(fd, "shutdown     turn the router off");
                return 0;
        } else if (match_input("help",arg)) {
                printoutc(fd, "help         print a summary of mgmt commands.");
@@ -183,13 +191,12 @@
                return 0;
        } else if (match_input("logout",arg)) {
                printoutc(fd, "Syntax:");
+               printoutc(fd, "\tlogout");
                return 0;
        } else if (match_input("shutdown",arg)) {
                printoutc(fd, "Syntax:");
+               printoutc(fd, "\tshutdown");
                return 0;
-       } else if (match_input("quit",arg)) {
-               printoutc(fd, "Syntax:");
-               return 0;
        } else {
                printoutc(fd, "No help available for %s", arg);
        }
@@ -391,11 +398,6 @@
        free(gateway);
 }
 
-static int confirmquitplease(int fd,char *s) {
-       printoutc(fd, "(did you mean 'quit'?)");
-       return EBADRQC;
-};
-
 static int route(int fd,char *s)
 {
        char *nextargs = NULL, *arg;
@@ -986,9 +988,7 @@
        {"ipfilter", filter, WITHFILE},
        {"queue", queue, WITHFILE},
        {"logout",logout, 0},
-       {"shutdown",doshutdown, 0},
-       {"quit",doshutdown, 0},
-       {"q",confirmquitplease, 0}
+       {"shutdown",doshutdown, 0}
 };
 
 #define NCL sizeof(commandlist)/sizeof(struct comlist)

Modified: branches/vde-router/vde-2/src/vde_router/vde_router.h
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vde_router.h       2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vde_router.h       2011-12-15 
23:08:42 UTC (rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 
 #ifndef _VDER_ROUTER
 #define _VDER_ROUTER

Modified: branches/vde-router/vde-2/src/vde_router/vder_arp.c
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_arp.c 2011-12-15 17:48:17 UTC 
(rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vder_arp.c 2011-12-15 23:08:42 UTC 
(rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 #include "vde_router.h"
 #include "vde_headers.h"
 #include "vder_datalink.h"

Modified: branches/vde-router/vde-2/src/vde_router/vder_arp.h
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_arp.h 2011-12-15 17:48:17 UTC 
(rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vder_arp.h 2011-12-15 23:08:42 UTC 
(rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 #ifndef __VDER_ARP
 #define __VDER_ARP
 struct vder_arp_entry *vder_get_arp_entry(struct vder_iface *vif, uint32_t 
addr);

Modified: branches/vde-router/vde-2/src/vde_router/vder_datalink.c
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_datalink.c    2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vder_datalink.c    2011-12-15 
23:08:42 UTC (rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 #include "vde_router.h"
 #include "vde_headers.h"
 #include "vder_queue.h"

Modified: branches/vde-router/vde-2/src/vde_router/vder_datalink.h
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_datalink.h    2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vder_datalink.h    2011-12-15 
23:08:42 UTC (rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 #ifndef _VDER_DATALINK
 #define _VDER_DATALINK
 #include <stdint.h>

Modified: branches/vde-router/vde-2/src/vde_router/vder_icmp.c
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_icmp.c        2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vder_icmp.c        2011-12-15 
23:08:42 UTC (rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 #include "vde_router.h"
 #include "vde_headers.h"
 #include "vder_packet.h"

Modified: branches/vde-router/vde-2/src/vde_router/vder_icmp.h
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_icmp.h        2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vder_icmp.h        2011-12-15 
23:08:42 UTC (rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 #ifndef __VDER_ICMP
 #define __VDER_ICMP
 int vder_icmp_service_unreachable(uint32_t dst, uint8_t *foot);

Modified: branches/vde-router/vde-2/src/vde_router/vder_packet.c
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_packet.c      2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vder_packet.c      2011-12-15 
23:08:42 UTC (rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 #include "vder_datalink.h"
 #include "vder_arp.h"
 #include "vder_icmp.h"

Modified: branches/vde-router/vde-2/src/vde_router/vder_packet.h
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_packet.h      2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vder_packet.h      2011-12-15 
23:08:42 UTC (rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 #ifndef _VDER_PACKET
 #define _VDER_PACKET
 

Modified: branches/vde-router/vde-2/src/vde_router/vder_queue.c
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_queue.c       2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vder_queue.c       2011-12-15 
23:08:42 UTC (rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 #include "vder_queue.h"
 #include "vde_router.h"
 #include <stdlib.h>

Modified: branches/vde-router/vde-2/src/vde_router/vder_queue.h
===================================================================
--- branches/vde-router/vde-2/src/vde_router/vder_queue.h       2011-12-15 
17:48:17 UTC (rev 524)
+++ branches/vde-router/vde-2/src/vde_router/vder_queue.h       2011-12-15 
23:08:42 UTC (rev 525)
@@ -1,3 +1,8 @@
+/* VDE_ROUTER (C) 2007:2011 Daniele Lacamera
+ *
+ * Licensed under the GPLv2
+ *
+ */
 #ifndef __VDER_QUEUE
 #define __VDER_QUEUE
 #include <stdint.h>

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


------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
vde-users mailing list
vde-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vde-users

Reply via email to