you invoke it like this:

http://.../plugins/pep


Here is the code in http.c that handles plugins:

  if(strncmp(pageName, PLUGINS_HEADER, strlen(PLUGINS_HEADER)) == 0) {
    if(handlePluginHTTPRequest(&pageName[strlen(PLUGINS_HEADER)])) {
      return(0);
    }

So it passes the string beginning with pep/... to: handlePluginHTTPRequest()
in webInterface.c (around line 1200):

      if(strlen(url) ==
strlen(flows->pluginStatus.pluginPtr->pluginURLname))
        arg = "";
      else
        arg = &url[strlen(flows->pluginStatus.pluginPtr->pluginURLname)+1];

So, whatever you pass AFTER the plugin header and name is what's passed as
the argument ("url") to pep.  Look in pep.c around 114 for the arguments
it's looking for...

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, April 15, 2002 10:43 AM
To: [EMAIL PROTECTED]
Subject: [Ntop] running PeP on Mandrake 8.0


Hi,

I've compiled the April 12 version of ntop under Mandrake 8.0.

The options page is saying that Pep is running, yet, when I click on the
plugin link for Pep, nothing is returned.

I've installed pep.so under /usr/local/lib/ntop/plugins and all of the perl
scripts under /usr/local/lib/ntop/plugins/pep.

When running ntop with -t5, the only message that is returned is:

     [pep.c:107] Pep Request for url

No url is specified although the code looks like one should be passed to
the function.

If anyone has any experience with getting this plug-in to run under Linux,
please respond.

TIA,

Pat

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

Reply via email to