The name was changed in 2.1.55...

You could mod the code in sessions.c to lookup the port# in the mapper...

(gdb) print myGlobals.numIpPortMapperSlots
$1 = 52
(gdb) print myGlobals.ipPortMapper[0]
$2 = {port = -1, mappedPort = -286331154}
(gdb) print myGlobals.ipPortMapper[1]
$3 = {port = 139, mappedPort = 5}
(gdb) print myGlobals.ipPortMapper[2]
$4 = {port = -1, mappedPort = -286331154}
(gdb) print myGlobals.ipPortMapper[3]
$5 = {port = 53, mappedPort = 1}

You would have to scan the table - loading code is in ntop.c - but there is
already a function, mapGlobalToLocalIdx() to do it.  Maybe make it something
like (off the cuff) this:

  if((sport < MAX_ASSIGNED_IP_PORTS) || (mapGlobalToLocalIdx(sport) != -1))
{


-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marek
Dohojda
Sent: Tuesday, January 07, 2003 3:04 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [Ntop] Hello Everyone; protocols


Thank you!!

That did the trick.  Although the actual name was not MAX_ASSIGNED_IP_PORTS
but was #define TOP_ASSIGNED_IP_PORTS

Anyway's it worked.  Although I have to think of a way to filter it.  LOL, I
wonder if there is a way for it to just display the named ports and if it is
unammed to ignore it.

Thank you!
Marek

-----Original Message-----
From: Burton M. Strauss III [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 10:30 AM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] Hello Everyone; protocols


look at updateUsedPorts() in session.c, you'll see that only ports below

#define MAX_ASSIGNED_IP_PORTS               1024

are being monitored.

It might have been better to rename that to

MAX_IP_PORT_TO_MONITOR_USAGE or some such...

Change it in globals-defines.h and recompile.

I'm still confused as to what you would have needed to edit in main.c in the
first place...

-----Burton





-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marek
Dohojda
Sent: Tuesday, January 07, 2003 11:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [Ntop] Hello Everyone; protocols


Hello

Thank you.  What confusing me the most is the fact that in the distribution
it shows all the new Protocols I put in... and it shows the traffic on them
(not much but still traffic).  So how come it wouldn't show in the usage?

As to compiled, I edited the main.c before I complied.

-----Original Message-----
From: Burton M. Strauss III [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 5:30 AM
To: [EMAIL PROTECTED]
Subject: RE: [Ntop] Hello Everyone; protocols


If it's not showing up in the sortDataProtos.html page, I'm guessing it's
not being read properly... Since you've elided the command line, not posted
anything from the log, it's all just guesses.

Check the log for error messages.

Off hand, it looks ok, although "compile the ntop with additional protocol"
makes no sense - there aren't any switches that I'm aware of.

The relevant code is in main.c, handleProtocols() and handleProtocolList().

There are some #ifdef DEBUG lines you can enable to see what's happening

(just put a #define DEBUG before and a #undef DEBUG after each function).

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Marek
Dohojda
Sent: Monday, January 06, 2003 7:38 PM
To: '[EMAIL PROTECTED]'
Subject: [Ntop] Hello Everyone; protocols



Hello

I am new to this list, and I did try to read all the archives.  If this
question has been answered then I am sorry.

Now my problem is that.  I can't seem to make a new protocol appear in the
"IP Protos" tab under usage.  I run my ntop with the following:

ntop -p /usr/share/ntop/protocol.list ... (rest of switches)

The protocol.list does contain all the protocols I care about, including
some added ones (like AIM, and Yahoo IM)

I tried to compile the ntop with additional protocol support as well as
running it like this::

ntop -p aim=5190,yahoo=5050.

Whatever I do it doesn't show up.  There is AIM traffic I did tcpdump on it.

The AIM does show up under "Distribution" section.


Thank you very much for your help
Marek
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

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

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

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

Reply via email to