Revision: 461 http://vde.svn.sourceforge.net/vde/?rev=461&view=rev Author: rd235 Date: 2011-01-15 17:39:43 +0000 (Sat, 15 Jan 2011)
Log Message: ----------- libvdehist: reload the command list when plugins get loaded/unloaded Modified Paths: -------------- trunk/vde-2/src/lib/libvdehist.c trunk/vde-2/src/vde_switch/plugins/iplog.c Modified: trunk/vde-2/src/lib/libvdehist.c =================================================================== --- trunk/vde-2/src/lib/libvdehist.c 2011-01-14 21:13:49 UTC (rev 460) +++ trunk/vde-2/src/lib/libvdehist.c 2011-01-15 17:39:43 UTC (rev 461) @@ -323,6 +323,8 @@ n=vdehist_vderead(st->mgmtfd,buf,BUFSIZE); } } + if (commandlist == NULL && st->mgmtfd >= 0) + vdehist_create_commandlist(st->mgmtfd); /* redraw the input line */ redraw_line(st,1); } @@ -350,6 +352,12 @@ vdehist_termwrite(st->termfd,"\r\n",2); vdehist_termwrite(st->termfd,prompt,strlen(prompt)); } + if (commandlist != NULL && + (strncmp(cmd,"plugin/add",10) == 0 || + strncmp(cmd,"plugin/del",10) == 0)) { + free(commandlist); + commandlist=NULL; + } return 0; } Modified: trunk/vde-2/src/vde_switch/plugins/iplog.c =================================================================== --- trunk/vde-2/src/vde_switch/plugins/iplog.c 2011-01-14 21:13:49 UTC (rev 460) +++ trunk/vde-2/src/vde_switch/plugins/iplog.c 2011-01-15 17:39:43 UTC (rev 461) @@ -343,7 +343,7 @@ /*user interface: showinfo */ static int ipshowinfo(FILE *fd) { - printoutc(fd,"iplog: ip/port/user loggin plugin"); + printoutc(fd,"iplog: ip/port/user logging plugin"); if (logfilefd<0) { if (logfilefd == -1) printoutc(fd,"log disabled"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ vde-users mailing list vde-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vde-users