[ Cc: back to list ]
On Sat, Mar 19, 2005 at 10:46:12AM +0200, Martins Dzelde wrote:
sorry, but i cannet find where is the resolver code.. nor where is the actual config file located. where should it be?
The particular version of the resolver code which iftop uses is decided by the configure script at compile time. I thought the configure script printed that out, but it looks like it doesn't, necessarily. So, the easiest way to find out is, in the build directory, to type,
grep USE config.h
you'll get output something like this:
/* #undef USE_ARES */ /* #undef USE_FORKING_RESOLVER */ /* #undef USE_GETHOSTBYADDR */ #define USE_GETHOSTBYADDR_R 1 /* #undef USE_GETNAMEINFO */
-- the #define line in this case indicates that that build of iftop uses name-resolution code based on gethostbyaddr_r(3).
the output there is:
/* #undef USE_ARES */ #define USE_FORKING_RESOLVER 1 /* #undef USE_GETHOSTBYADDR */ /* #undef USE_GETHOSTBYADDR_R */ /* #undef USE_GETNAMEINFO */
what does it mean?
btw, i installed iftop-0.16 as a port on freebsd-5.2 and iftop still fills up proccess list..
maybe someone know the answer for the second question: 2) how to make iftop show bandwidth usage by ip address. so that it sum up all connections made from each ip in the network.
Thanks, Martins.
On Sat, 19 Mar 2005 10:38:46 +0000, Chris Lightfoot chris@ex-parrot.com wrote:
[ Cc: back to list ]
On Sat, Mar 19, 2005 at 10:46:12AM +0200, Martins Dzelde wrote:
sorry, but i cannet find where is the resolver code.. nor where is the actual config file located. where should it be?
The particular version of the resolver code which iftop uses is decided by the configure script at compile time. I thought the configure script printed that out, but it looks like it doesn't, necessarily. So, the easiest way to find out is, in the build directory, to type,
grep USE config.h
you'll get output something like this:
/* #undef USE_ARES */ /* #undef USE_FORKING_RESOLVER */ /* #undef USE_GETHOSTBYADDR */ #define USE_GETHOSTBYADDR_R 1 /* #undef USE_GETNAMEINFO */
-- the #define line in this case indicates that that build of iftop uses name-resolution code based on gethostbyaddr_r(3).
ping any hello?
- how to make iftop show bandwidth usage by ip address. so that it sum
up all connections made from each ip in the network. so that iftop wouldnt show every connection for each ip addressbut only total bw usage for each ip
On Sun, 20 Mar 2005 15:45:34 +0200, Martins Dzelde martins.dzelde@latrude.lv wrote:
the output there is:
/* #undef USE_ARES */ #define USE_FORKING_RESOLVER 1 /* #undef USE_GETHOSTBYADDR */ /* #undef USE_GETHOSTBYADDR_R */ /* #undef USE_GETNAMEINFO */
what does it mean?
btw, i installed iftop-0.16 as a port on freebsd-5.2 and iftop still fills up proccess list..
maybe someone know the answer for the second question: 2) how to make iftop show bandwidth usage by ip address. so that it sum up all connections made from each ip in the network.
Thanks, Martins.
On Sat, 19 Mar 2005 10:38:46 +0000, Chris Lightfoot chris@ex-parrot.com wrote:
[ Cc: back to list ]
On Sat, Mar 19, 2005 at 10:46:12AM +0200, Martins Dzelde wrote:
sorry, but i cannet find where is the resolver code.. nor where is the actual config file located. where should it be?
The particular version of the resolver code which iftop uses is decided by the configure script at compile time. I thought the configure script printed that out, but it looks like it doesn't, necessarily. So, the easiest way to find out is, in the build directory, to type,
grep USE config.h
you'll get output something like this:
/* #undef USE_ARES */ /* #undef USE_FORKING_RESOLVER */ /* #undef USE_GETHOSTBYADDR */ #define USE_GETHOSTBYADDR_R 1 /* #undef USE_GETNAMEINFO */
-- the #define line in this case indicates that that build of iftop uses name-resolution code based on gethostbyaddr_r(3).
iftop-users mailing list iftop-users@lists.beasts.org http://lists.beasts.org/mailman/listinfo/iftop-users
On Sun, Mar 20, 2005 at 03:45:34PM +0200, Martins Dzelde wrote:
the output there is:
/* #undef USE_ARES */ #define USE_FORKING_RESOLVER 1 /* #undef USE_GETHOSTBYADDR */ /* #undef USE_GETHOSTBYADDR_R */ /* #undef USE_GETNAMEINFO */
what does it mean?
It means that it's using the forking resolver, so it starts a number of resolver processes (using fork()) and communicates with them internally using a pipe. I'm afraid I don't have time at the moment to look into why it might leave processes around. In theory, the forking resolver should be pretty portable across UNIXs
maybe someone know the answer for the second question: 2) how to make iftop show bandwidth usage by ip address. so that it sum up all connections made from each ip in the network.
Does hiding either source or dest host not do what you want?
Paul
Thank you for your comments.
Does hiding either source or dest host not do what you want?
not really, because then i can see only incoming OR outgoing traffic for a specific ip address. What i want is to see total traffic for each ip address. It is the same what i can see when looking at totals after typing smth like 'iftop -F 192.168.29.195/255.255.255.255'. Only i would like to see the totals for many ip addreses on one screen. Is it possible?
Martins.
ps, btw. iftop mailling list reply-to address should be iftop-users@lists.beasts.org but its the sender.
greetings everyone, it seems that working in a media 10baseT/UTP iftop counts RX as TX and TX as TX. Hence RX is all the time zero. I think it shouldnt be this way, should it?
Martins.
------- Forwarded message ------- From: "Martins Dzelde" martins.dzelde@latrude.lv To: "iftop-users@lists.beasts.org" iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop continue running after exit Date: Fri, 01 Apr 2005 11:15:02 +0300
Thank you for your comments.
Does hiding either source or dest host not do what you want?
not really, because then i can see only incoming OR outgoing traffic for a specific ip address. What i want is to see total traffic for each ip address. It is the same what i can see when looking at totals after typing smth like 'iftop -F 192.168.29.195/255.255.255.255'. Only i would like to see the totals for many ip addreses on one screen. Is it possible?
Martins.
On Sun, Apr 24, 2005 at 03:59:19PM +0300, Martins Dzelde wrote:
greetings everyone, it seems that working in a media 10baseT/UTP iftop counts RX as TX and TX as TX. Hence RX is all the time zero. I think it shouldnt be this way, should it?
Could you give me some more information, please. Is this for all host pairs or is it just the totals? What OS are you using, and what command line are you using?
The totals are based on the direction in which packets are moving over the host computer's inferface (or across the specified network boundary). If iftop cannot determine this direction, it will treat all packets as incoming for the purposes of totals.
Paul
------- Forwarded message ------- From: "Martins Dzelde" martins.dzelde@latrude.lv To: "iftop-users@lists.beasts.org" iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop continue running after exit Date: Fri, 01 Apr 2005 11:15:02 +0300
Thank you for your comments.
Does hiding either source or dest host not do what you want?
not really, because then i can see only incoming OR outgoing traffic for a specific ip address. What i want is to see total traffic for each ip address. It is the same what i can see when looking at totals after typing smth like 'iftop -F 192.168.29.195/255.255.255.255'. Only i would like to see the totals for many ip addreses on one screen. Is it possible?
Martins.
iftop-users mailing list iftop-users@lists.beasts.org http://lists.beasts.org/mailman/listinfo/iftop-users