(Yes, it is two and you're going to get two answers so that the archives are
easier to search)
#2 check the -p (--protocols) option. Note that this works for adding TCP
and UDP protocols, i.e. specific port #s. If by protocol you mean an IP
level protocol, then ntop really only understands three (ICMP, TCP and UDP)
The place to look is in pbuf.c, processIpPkt(), esp:
switch(ip.ip_p) {
case IPPROTO_TCP:
case IPPROTO_UDP:
case IPPROTO_ICMP:
case IPPROTO_OSPF:
case IPPROTO_IGMP:
default:
proto = "IP (Other)";
}
Effort to writing code, especially if you are working in an environment with
other protocols would be greatly appreciated... Here is the list from my
/usr/include/linux/in.h:
enum {
IPPROTO_IP = 0, /* Dummy protocol for TCP */
IPPROTO_ICMP = 1, /* Internet Control Message Protocol */
IPPROTO_IGMP = 2, /* Internet Group Management Protocol */
IPPROTO_IPIP = 4, /* IPIP tunnels (older KA9Q tunnels use 94)
*/
IPPROTO_TCP = 6, /* Transmission Control Protocol */
IPPROTO_EGP = 8, /* Exterior Gateway Protocol */
IPPROTO_PUP = 12, /* PUP protocol */
IPPROTO_UDP = 17, /* User Datagram Protocol */
IPPROTO_IDP = 22, /* XNS IDP protocol */
IPPROTO_RSVP = 46, /* RSVP protocol */
IPPROTO_GRE = 47, /* Cisco GRE tunnels (rfc 1701,1702) */
IPPROTO_IPV6 = 41, /* IPv6-in-IPv4 tunnelling */
IPPROTO_PIM = 103, /* Protocol Independent Multicast */
IPPROTO_ESP = 50, /* Encapsulation Security Payload protocol */
IPPROTO_AH = 51, /* Authentication Header protocol */
IPPROTO_COMP = 108, /* Compression Header protocol */
IPPROTO_RAW = 255, /* Raw IP packets */
IPPROTO_MAX
};
-----Burton
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris
Nicola
Sent: Thursday, May 09, 2002 1:42 PM
To: [EMAIL PROTECTED]
Subject: [Ntop] NTOP Configuration Questions
I have been running NTOP for a bit and I am pretty impressed with it
overall. There were a few things I want to be able to do but the available
FAQs and MAN pages don�t really give any detailed info on how it is done.
Maybe someone here can help me.
1) I want to be able to store all of the statistics so that a reset
does not reset statistics. I know that �S1 and �S2 options will store stats
for specific hosts but I have been told they do not store overall stats so
that information still gets reset.
2) I want to be able to add new protocols to the list that NTOP
currently has so that it recognizes some of the odd ports I use instead of
just grouping them all in Other. I can�t find anything on that either (I
have no idea why it isn�t in the man pages or documentation anywhere)
That is really it as suppose it is 2 things and not a few. There are more
but I figure I will start small.
Thanks,
Chris Nicola
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop