It's in the source:

/*
 * This is the theoretical upper limit on "NIC"s.  This must be large enough
to include
 *  the dummy device, other pseudo- devices (sFlow, netFlow) and all of the
real and
 *  virtual network interface cards on the -i parameter.
 *
 * Note that because the big allocators are dynamic, reducing this will not
save
 * much memory.  Still, 32 is absurd for MOST people.
 *
 * But, remember - when sniffing from a multihomed interface it is necessary
to add
 * all the virtual interfaces because ntop has to know all the local
addresses.
 *
 * This affects static allocations:
 *     in graph.c - for reporting
 *     in hash.c - for lastPurgeTime[] in purgeIdleHosts()
 *     in plugin.c - for the flow filters structure
 *
 * This affects dynamic allocations in initialize.c - if it's too small for
the -i parameter,
 *  there is a warning message in initDevices().
 *
 */
#define MAX_NUM_DEVICES                     32

/*
 * Maximum virtual device (e.g. eth0:n) to check
 */
#define MAX_NUM_DEVICES_VIRTUAL             7


-----Burton 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Alistair Francis
Sent: Wednesday, March 30, 2005 7:20 AM
To: [email protected]
Subject: RE: [Ntop] Interfaces (-i)

Hi,

Firstly, thanks for the feedback Burton. Let me just say that I am a linux
newbie and am not yet entirely comfortable getting around in it. I had a
look at the contents of the ntop tarball that I'd downloaded and can't find
a globals-define.h. Am I looking in the wrong place? Or is that a reference
to a source code file? I haven't a clue how to recompile it. Don't mean to
come across as requiring spoon feeding but it's not so easy to hit the
ground running.

Again TIA

Ali


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Burton Strauss
Sent: 30 March 2005 14:41
To: [email protected]
Subject: RE: [Ntop] Interfaces (-i)


There's a #define - look in globals-define.h

-----Burton


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Alistair Francis
Sent: Wednesday, March 30, 2005 12:52 AM
To: NTOP
Subject: [Ntop] Interfaces (-i)

Hi,

Is it just me, or is there a limit to the number of interfaces ntop can
handle. I specify eth0, eth1 & eth2 in the -i command-line parameter and
then when I run ntop it automatically adds the virtual interfaces on eth2,
which is great. However, it seems to stop at eth2:7 (a total of 10
interfaces). Anyone know if this is a hard-coded limitation or whether it is
configurable?

TIA

Alistair Francis
Systems Administrator
Comm Express Services SA (PTY) LTD
TEL:    +27 (0)11 475-5567
FAX:   +27 (0)11 475-6238
CELL: +27 (0)84 607-7325

The information contained in this electronic mail message is confidential to
the Matragon group of companies and may enjoy legal privilege. The contents
are intended solely for the addressee and access thereto by anyone else is
unauthorised. Should you not be the intended recipient, kindly delete the
message and inform us. Any disclosure, copying or distribution is prohibited
and may be unlawful. Please also note that any action taken, or omitted to
be taken in reliance on the information contained herein is done at your own
risk.

_______________________________________________
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