Ethereal-dev: Re: [Ethereal-dev] Suppport inhouse use

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Thomas Boehne <TBoehne@xxxxxxxx>
Date: Wed, 31 Aug 2005 14:40:14 +0200
On Wednesday 31 August 2005 14:00, Jaap Keuter wrote:
> With the risk of getting flamed I want to float this idea. Currently
> Ethereal can 'leak' information to the world by refering back to the
> Wiki as online protocol reference.

I patched my gtk/main.c to redirect accesses for my own plugins to our
local Wiki, which works quite well. However, it would be nicer if
there was an API to set the URL from the plugin code (thus allowing
each plugin to have it's own URL). So instead of adding a boolean
field hfinfo->proprietary I would add a pointer to a URL (which should
default to wiki.ethereal.com, if unset).

thomasb@pc-tb-debian:~/fromsvn/ethereal/gtk 0$ svn diff main.c
Index: main.c
===================================================================
--- main.c      (revision 15528)
+++ main.c      (working copy)
@@ -291,7 +291,13 @@
     case(ESD_BTN_OK):
         if (cfile.finfo_selected) {
             /* open wiki page using the protocol abbreviation */
-            selected_proto_url = g_strdup_printf("http://wiki.ethereal.com/Protocols/%s";, proto_abbrev);
+           if ((strcmp(proto_abbrev, "adwin") == 0) ||
+               (strcmp(proto_abbrev, "adwin_config") == 0) ||
+               (strcmp(proto_abbrev, "s5fw") == 0) ||
+               (strcmp(proto_abbrev, "hipath") == 0))
+                   selected_proto_url = g_strdup_printf("http://linuxsrv1/wiki/index.php?title=Network_protocol_%s";, proto_abbrev);
+           else
+                   selected_proto_url = g_strdup_printf("http://wiki.ethereal.com/Protocols/%s";, proto_abbrev);
             browser_open_url(selected_proto_url);
             g_free(selected_proto_url);
         }


Thomas

-- 
Jäger Computergesteuerte Messtechnik GmbH
Thomas Böhne
Rheinstraße 2-4
64653 Lorsch
Tel.: +49-6251-9632-0