From pdw@sphinx.mythic-beasts.com Wed May 21 17:43:43 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19IWgp-0007Bf-00 for iftop-users@lists.beasts.org; Wed, 21 May 2003 17:43:43 +0100 Date: Wed, 21 May 2003 17:43:42 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030521174342.D13712@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: [Iftop-users] Test email Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: From pdw@sphinx.mythic-beasts.com Wed May 21 17:44:34 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19IWhd-0007DV-00 for iftop-users@lists.beasts.org; Wed, 21 May 2003 17:44:33 +0100 Date: Wed, 21 May 2003 17:44:33 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030521174433.F13712@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: [Iftop-users] test Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: From jwilson@mycfo.com Wed May 21 22:02:29 2003 Received: from mx.mycfo.com ([64.0.25.132]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19IajF-0006Uf-00 for iftop-users@lists.beasts.org; Wed, 21 May 2003 22:02:29 +0100 Received: from mx.mycfo.com (localhost [127.0.0.1]) by mx.mycfo.com (8.12.9/8.11.0) with ESMTP id h4LL2nIO015437 for ; Wed, 21 May 2003 14:02:49 -0700 (PDT) Received: from mtv-ex1.win.mycfo.com (win.mycfo.com [10.42.3.67]) by mx.mycfo.com (8.12.9/8.11.0) with ESMTP id h4LL2nwc015434 for ; Wed, 21 May 2003 14:02:49 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 21 May 2003 14:02:27 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Welcome to the "iftop-users" mailing list Thread-Index: AcMf2/PH9fUQF/GdQv+K8iaoQDQC/wAABr7A From: "James Wilson" To: Subject: [Iftop-users] Unnumbered interface problem Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: I have an IDS station sniffing an unnumbered interface and I want iftop = to monitor that interface, but it keeps refusing to do so because it = can't look up the address. Is there a way to use it the same way I do = with snort, tcpdump, etc? Thanks! --=20 James D. Wilson Sr. Network/Security Engineer "non sunt multiplicanda entia praeter necessitatem" William of Ockham (1285-1347/49) From pdw@sphinx.mythic-beasts.com Wed May 21 22:13:15 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19Iate-0006g6-00; Wed, 21 May 2003 22:13:14 +0100 Date: Wed, 21 May 2003 22:13:14 +0100 From: Paul Warren To: James Wilson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Unnumbered interface problem Message-ID: <20030521221314.B22178@sphinx.mythic-beasts.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from jwilson@mycfo.com on Wed, May 21, 2003 at 02:02:27PM -0700 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Wed, May 21, 2003 at 02:02:27PM -0700, James Wilson wrote: > I have an IDS station sniffing an unnumbered interface and I want > iftop to monitor that interface, but it keeps refusing to do so > because it can't look up the address. Is there a way to use it the > same way I do with snort, tcpdump, etc? Yeah - see the patch below (it just removes the exit calls if it can't find the address...). It doesn't actually need the IP address, or the hardware for that matter. These are only used to assign direction to packets in a consistent manner. You can always use a -N option to specify an IP network boundary to assign direction across. Paul diff -c -r1.44 iftop.c *** iftop.c 20 May 2003 21:14:37 -0000 1.44 --- iftop.c 21 May 2003 21:10:09 -0000 *************** *** 447,453 **** if (ioctl(s, SIOCGIFHWADDR, &ifr) < 0) { fprintf(stderr, "Error getting hardware address for interface: %s\n", options.interface); perror("ioctl(SIOCGIFHWADDR)"); - exit(1); } else { memcpy(if_hw_addr, ifr.ifr_hwaddr.sa_data, 6); --- 447,452 ---- *************** *** 470,476 **** if (ioctl(s, SIOCGIFADDR, &ifr) < 0) { fprintf(stderr, "Error getting IP address for interface: %s\n", options.interface); perror("ioctl(SIOCGIFADDR)"); - exit(1); } else { have_ip_addr = 1; --- 469,474 ---- From jwilson@mycfo.com Wed May 21 22:19:49 2003 Received: from mx.mycfo.com ([64.0.25.132]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19Ib00-0007NJ-00 for iftop-users@lists.beasts.org; Wed, 21 May 2003 22:19:49 +0100 Received: from mx.mycfo.com (localhost [127.0.0.1]) by mx.mycfo.com (8.12.9/8.11.0) with ESMTP id h4LLK8IQ016483 for ; Wed, 21 May 2003 14:20:09 -0700 (PDT) Received: from mtv-ex1.win.mycfo.com (win.mycfo.com [10.42.3.67]) by mx.mycfo.com (8.12.9/8.11.0) with ESMTP id h4LLK8wc016480; Wed, 21 May 2003 14:20:08 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [Iftop-users] Unnumbered interface problem Date: Wed, 21 May 2003 14:19:46 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Iftop-users] Unnumbered interface problem Thread-Index: AcMf3cxDkSVW6PYxRQCU4h9Ay2Fp3gAAMh9w From: "James Wilson" To: "Paul Warren" Cc: Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Yep, I commented out the two exit(1)'s and things work great! This will = help me a lot when it is time to hunt down the source of heavy bandwidth = utilization... Thanks! --=20 James D. Wilson Sr. Network/Security Engineer "non sunt multiplicanda entia praeter necessitatem" William of Ockham (1285-1347/49) -----Original Message----- From: Paul Warren [mailto:pdw@ex-parrot.com] Sent: Wednesday, May 21, 2003 2:13 PM To: James Wilson Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Unnumbered interface problem On Wed, May 21, 2003 at 02:02:27PM -0700, James Wilson wrote: > I have an IDS station sniffing an unnumbered interface and I want > iftop to monitor that interface, but it keeps refusing to do so > because it can't look up the address. Is there a way to use it the > same way I do with snort, tcpdump, etc? Yeah - see the patch below (it just removes the exit calls if it can't find the address...). It doesn't actually need the IP address, or the hardware for that matter. These are only used to assign direction to packets in a consistent manner. You can always use a -N option to specify an IP network boundary to assign direction across. Paul diff -c -r1.44 iftop.c *** iftop.c 20 May 2003 21:14:37 -0000 1.44 --- iftop.c 21 May 2003 21:10:09 -0000 *************** *** 447,453 **** if (ioctl(s, SIOCGIFHWADDR, &ifr) < 0) { fprintf(stderr, "Error getting hardware address for interface: %s\n", options.interface); perror("ioctl(SIOCGIFHWADDR)"); - exit(1); } else { memcpy(if_hw_addr, ifr.ifr_hwaddr.sa_data, 6); --- 447,452 ---- *************** *** 470,476 **** if (ioctl(s, SIOCGIFADDR, &ifr) < 0) { fprintf(stderr, "Error getting IP address for interface: %s\n", options.interface); perror("ioctl(SIOCGIFADDR)"); - exit(1); } else { have_ip_addr =3D 1; --- 469,474 ---- From jonabbey@arlut.utexas.edu Fri May 23 16:01:26 2003 Received: from ns2.arlut.utexas.edu ([129.116.174.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19JE2v-000391-00 for iftop-users@lists.beasts.org; Fri, 23 May 2003 16:01:25 +0100 Received: from ns5.arlut.utexas.edu (ns5.arlut.utexas.edu [10.4.1.6]) by ns2.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h4NF1OTQ029536 for ; Fri, 23 May 2003 10:01:24 -0500 (CDT) Received: from csdsun1.arlut.utexas.edu (csdsun1.arlut.utexas.edu [10.10.16.165]) by ns5.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h4NF1OI6018965 for ; Fri, 23 May 2003 10:01:24 -0500 (CDT) Received: (from broccol@localhost) by csdsun1.arlut.utexas.edu (8.11.6+Sun/8.11.6) id h4NF1On07915 for iftop-users@lists.beasts.org; Fri, 23 May 2003 10:01:24 -0500 (CDT) Date: Fri, 23 May 2003 10:01:24 -0500 From: Jonathan Abbey To: iftop-users@lists.beasts.org Message-ID: <20030523150124.GA7277@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q68bSM7Ycu6FN28Q" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Subject: [Iftop-users] Kudos and Question Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi everyone. Just wanted to drop a line and say that we're extremely pleased to have iftop here at ARL:UT. I, personally, have been wanting something like this for some time, and seeing it on freshmeat yesterday was really fantastic. I do have a question, however. We're running it on Solaris 8, and while I understand that it's necessary to use -p to run it in promiscuous mode to see the outgoing packets, even when this is done, I still see nothing but flatline on the cummulative and peak TX stats on the bottom of the display. This even in the case where I'm seeing outgoing statistics in the bar-graph display. I built iftop-0.12 against libpcap-0.7.2.. is this a supported configuration? Thanks for a really attractive tool. Jon --=20 ---------------------------------------------------------------------------= ---- Jonathan Abbey jonabbey@arlut.utexas.edu Applied Research Laboratories The University of Texas at Au= stin GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey= .gpg --Q68bSM7Ycu6FN28Q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (SunOS) iD8DBQE+zjfEGI9EwHF2dYYRAvQwAJ9KAueBBu/h/wrCx1n6hTuu+2KSZwCeM8JJ 6pz+a/a4kYLcBujMC910M+g= =+EPG -----END PGP SIGNATURE----- --Q68bSM7Ycu6FN28Q-- From pdw@sphinx.mythic-beasts.com Fri May 23 17:03:42 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19JF1C-0004hF-00; Fri, 23 May 2003 17:03:42 +0100 Date: Fri, 23 May 2003 17:03:42 +0100 From: Paul Warren To: Jonathan Abbey Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Kudos and Question Message-ID: <20030523170342.M9413@sphinx.mythic-beasts.com> References: <20030523150124.GA7277@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030523150124.GA7277@arlut.utexas.edu>; from jonabbey@arlut.utexas.edu on Fri, May 23, 2003 at 10:01:24AM -0500 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 23, 2003 at 10:01:24AM -0500, Jonathan Abbey wrote: > Hi everyone. Just wanted to drop a line and say that we're extremely > pleased to have iftop here at ARL:UT. I, personally, have been > wanting something like this for some time, and seeing it on freshmeat > yesterday was really fantastic. > > I do have a question, however. We're running it on Solaris 8, and > while I understand that it's necessary to use -p to run it in > promiscuous mode to see the outgoing packets, even when this is done, > I still see nothing but flatline on the cummulative and peak TX stats > on the bottom of the display. > > This even in the case where I'm seeing outgoing statistics in the > bar-graph display. OK, this is pretty much expected. Presumably when you start up (or after you quit) you see a message saying that it was unable to get the hardware address and/or the IP address? The problem is that if it can't figure out the above, it doesn't know which way packets are moving across the interface, so assumed that they were picked up in promiscuous mode (between two other hosts) and accounts them as incoming, having assigned the direction in the above display arbitrarily. Getting the hardware address is real PITA because there seem to be more ways of doing it than there are platforms in the world. Currently it's only working on linux. Can you try the attached patch, which is meant to work on Solaris, and let me know how you get on. I'm afraid I don't have access to a Solaris box to test this on. cheers, Paul --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=iftop-patch diff -c -r1.45 iftop.c *** iftop.c 21 May 2003 21:14:00 -0000 1.45 --- iftop.c 23 May 2003 16:02:19 -0000 *************** *** 452,457 **** --- 452,468 ---- memcpy(if_hw_addr, ifr.ifr_hwaddr.sa_data, 6); have_hw_addr = 1; } + #elif defined(SIOCGENADDR) /* Solaris */ + if (ioctlsocket(s, SIOCGENADDR, &ifr) < 0) + { + fprintf(stderr, "Error getting hardware address for interface: %s\n", options.interface); + perror("ioctl(SIOCGIFHWADDR)"); + } + else + { + memcpy(if_hw_addr, ifr.ifr_hwaddr.sa_data, 6); + have_hw_addr = 1; + } #else fprintf(stderr, "Cannot obtain hardware address on this platform\n"); #endif --n8g4imXOkfNTN/H1-- From jonabbey@arlut.utexas.edu Fri May 23 17:30:06 2003 Received: from ns2.arlut.utexas.edu ([129.116.174.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19JFQk-0005Id-00 for iftop-users@lists.beasts.org; Fri, 23 May 2003 17:30:06 +0100 Received: from ns5.arlut.utexas.edu (ns5.arlut.utexas.edu [10.4.1.6]) by ns2.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h4NGU4TQ033491 for ; Fri, 23 May 2003 11:30:04 -0500 (CDT) Received: from csdsun1.arlut.utexas.edu (csdsun1.arlut.utexas.edu [10.10.16.165]) by ns5.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h4NGU4I6041995 for ; Fri, 23 May 2003 11:30:04 -0500 (CDT) Received: (from broccol@localhost) by csdsun1.arlut.utexas.edu (8.11.6+Sun/8.11.6) id h4NGU4b15465 for iftop-users@lists.beasts.org; Fri, 23 May 2003 11:30:04 -0500 (CDT) Date: Fri, 23 May 2003 11:30:04 -0500 From: Jonathan Abbey To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Kudos and Question Message-ID: <20030523163004.GA14882@arlut.utexas.edu> References: <20030523150124.GA7277@arlut.utexas.edu> <20030523170342.M9413@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline In-Reply-To: <20030523170342.M9413@sphinx.mythic-beasts.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 23, 2003 at 05:03:42PM +0100, Paul Warren wrote: | OK, this is pretty much expected. Presumably when you start up (or | after you quit) you see a message saying that it was unable to get the | hardware address and/or the IP address? Mmm, possibly, I'll have to check. | The problem is that if it can't figure out the above, it doesn't know | which way packets are moving across the interface, so assumed that they | were picked up in promiscuous mode (between two other hosts) and | accounts them as incoming, having assigned the direction in the above | display arbitrarily. Right, makes perfect sense. | Getting the hardware address is real PITA because there seem to be more | ways of doing it than there are platforms in the world. Currently it's | only working on linux. Can you try the attached patch, which is meant | to work on Solaris, and let me know how you get on. I'm afraid I don't | have access to a Solaris box to test this on. I will give this a try, thanks. I do have another question. When running iftop, it seems to be almost random which IP addresses are resolved to their DNS names, and which addresses appear in dotted decimal form. This when all the hosts displayed, in whichever form, are properly registered in our local DNS. If we do an nslookup on a host before starting iftop, that host seems to be properly resolved on the bar graph, but the majority go unresolved. Does that scenario suggest anything? jon --=20 ---------------------------------------------------------------------------= ---- Jonathan Abbey jonabbey@arlut.utexas.edu Applied Research Laboratories The University of Texas at Au= stin GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey= .gpg --YZ5djTAD1cGYuMQK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (SunOS) iD8DBQE+zkyMGI9EwHF2dYYRAjp5AKDeeql3tGTi2/ELqa3AwQlnfPrIqACg67l8 M3CZjLAWhcDsZmzXYvXnkLY= =DYIe -----END PGP SIGNATURE----- --YZ5djTAD1cGYuMQK-- From pdw@sphinx.mythic-beasts.com Fri May 23 17:50:40 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19JFkd-0005oa-00; Fri, 23 May 2003 17:50:39 +0100 Date: Fri, 23 May 2003 17:50:39 +0100 From: Paul Warren To: Jonathan Abbey Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Kudos and Question Message-ID: <20030523175039.N9413@sphinx.mythic-beasts.com> References: <20030523150124.GA7277@arlut.utexas.edu> <20030523170342.M9413@sphinx.mythic-beasts.com> <20030523163004.GA14882@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030523163004.GA14882@arlut.utexas.edu>; from jonabbey@arlut.utexas.edu on Fri, May 23, 2003 at 11:30:04AM -0500 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, May 23, 2003 at 11:30:04AM -0500, Jonathan Abbey wrote: > | Getting the hardware address is real PITA because there seem to be more > | ways of doing it than there are platforms in the world. Currently it's > | only working on linux. Can you try the attached patch, which is meant > | to work on Solaris, and let me know how you get on. I'm afraid I don't > | have access to a Solaris box to test this on. > > I will give this a try, thanks. > > I do have another question. When running iftop, it seems to be almost > random which IP addresses are resolved to their DNS names, and which > addresses appear in dotted decimal form. This when all the hosts > displayed, in whichever form, are properly registered in our local > DNS. If we do an nslookup on a host before starting iftop, that host > seems to be properly resolved on the bar graph, but the majority go > unresolved. Which resolver mechanism are you using? I'm guessing that it's fallen back to using the single-threaded gethostbyname implementation. This sucks a lot, because if comes across an IP address that it can't resolve quickly (typically it takes up to a minute to time out) then it won't be able to resolve any more IP addresses. If all the IP addresses it ever encounters are in your local DNS then I'm a bit confused by this, because the resolver thread should never stall. In general, the best option would be to install ares, and the run: ./configure --with-resolver=ares You can get ares from: ftp://athena-dist.mit.edu/pub/ATHENA/ares/ Paul From pdw@sphinx.mythic-beasts.com Sun Jun 08 19:10:03 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19P4cF-0008Hh-00 for iftop-users@lists.beasts.org; Sun, 08 Jun 2003 19:10:03 +0100 Date: Sun, 8 Jun 2003 19:10:03 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030608191003.A30117@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: [Iftop-users] v0.13pre1 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: v0.13pre1 is now available from: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.13pre1.tar.gz This includes extensive work on the Solaris port by Jonathan Abbey. The only other change is to make failure to find hardware/ethernet addresses non-fatal. Pre-releases are intended to be QA for the real releases, so I'm very keen to hear any problems with the release (to the list) and success reports (to me). thanks, Paul From jonabbey@arlut.utexas.edu Sun Jun 08 19:39:54 2003 Received: from ns2.arlut.utexas.edu ([129.116.174.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19P558-0000O3-00 for iftop-users@lists.beasts.org; Sun, 08 Jun 2003 19:39:54 +0100 Received: from ns5.arlut.utexas.edu (ns5.arlut.utexas.edu [10.4.1.6]) by ns2.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h58IdpTQ015241; Sun, 8 Jun 2003 13:39:51 -0500 (CDT) Received: from csdsun1.arlut.utexas.edu (csdsun1.arlut.utexas.edu [10.10.16.165]) by ns5.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h58Idp8q024392; Sun, 8 Jun 2003 13:39:51 -0500 (CDT) Received: (from broccol@localhost) by csdsun1.arlut.utexas.edu (8.11.6+Sun/8.11.6) id h58Idpm28547; Sun, 8 Jun 2003 13:39:51 -0500 (CDT) Date: Sun, 8 Jun 2003 13:39:51 -0500 From: Jonathan Abbey To: Paul Warren Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] v0.13pre1 Message-ID: <20030608183951.GA24846@arlut.utexas.edu> References: <20030608191003.A30117@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: <20030608191003.A30117@sphinx.mythic-beasts.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 08, 2003 at 07:10:03PM +0100, Paul Warren wrote: > v0.13pre1 is now available from: >=20 > http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.13pre1.tar.gz >=20 > This includes extensive work on the Solaris port by Jonathan Abbey. >=20 > The only other change is to make failure to find hardware/ethernet > addresses non-fatal. The addrs_dlpi.c file isn't set up to fail non-fatally as it stands. The following patch takes care of that, assuming I've done the diff'ing in a useful fashion. *** addrs_dlpi.c.orig Sun Jun 8 13:28:56 2003 --- addrs_dlpi.c Sun Jun 8 13:35:53 2003 *************** *** 102,108 **** =20 if (cp =3D=3D NULL) { free(devname2); ! return -1; } else { *cp =3D '\0'; /* null terminate devname2 right before numeric exten= sion */ } --- 102,108 ---- =20 if (cp =3D=3D NULL) { free(devname2); ! goto get_ip_address; } else { *cp =3D '\0'; /* null terminate devname2 right before numeric exten= sion */ } *************** *** 114,125 **** if (errno !=3D ENOENT) { fprintf(stderr, "Couldn't open %s\n", devname2); free(devname2); ! return -1; } else { if ((fd =3D open(fulldevpath, O_RDWR)) < 0) { fprintf(stderr, "Couldn't open %s\n", fulldevpath); free(devname2); ! return -1; } } } --- 114,125 ---- if (errno !=3D ENOENT) { fprintf(stderr, "Couldn't open %s\n", devname2); free(devname2); ! goto get_ip_address; } else { if ((fd =3D open(fulldevpath, O_RDWR)) < 0) { fprintf(stderr, "Couldn't open %s\n", fulldevpath); free(devname2); ! goto get_ip_address; } } } *************** *** 167,178 **** fprintf(stderr, "Error, bad length for hardware interface %s -- %d\n"= ,=20 interface, dlp->info_ack.dl_addr_length); - close(fd); - return -1; } =20 close(fd); =20 /* Get the IP address of the interface */ =20 #ifdef SIOCGIFADDR --- 167,178 ---- fprintf(stderr, "Error, bad length for hardware interface %s -- %d\n"= ,=20 interface, dlp->info_ack.dl_addr_length); } =20 close(fd); =20 + get_ip_address: +=20 /* Get the IP address of the interface */ =20 #ifdef SIOCGIFADDR *************** *** 186,195 **** if (ioctl(fd, SIOCGIFADDR, &ifr) < 0) { fprintf(stderr, "Error getting IP address for interface: %s\n", "ge0"= );=20 perror("ioctl(SIOCGIFADDR)"); ! close(fd); ! return -1; ! } ! else { memcpy(if_ip_addr, &((*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr= ), sizeof(struct in_addr)); got_ip_addr =3D 2; } --- 186,192 ---- if (ioctl(fd, SIOCGIFADDR, &ifr) < 0) { fprintf(stderr, "Error getting IP address for interface: %s\n", "ge0"= );=20 perror("ioctl(SIOCGIFADDR)"); ! } else { memcpy(if_ip_addr, &((*(struct sockaddr_in *) &ifr.ifr_addr).sin_addr= ), sizeof(struct in_addr)); got_ip_addr =3D 2; } --=20 ---------------------------------------------------------------------------= ---- Jonathan Abbey jonabbey@arlut.utexas.edu Applied Research Laboratories The University of Texas at Au= stin GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey= .gpg --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (SunOS) iD8DBQE+44L2GI9EwHF2dYYRAoT3AKC1U/MZ6y2fi5l3f8McJEL9ILwOcwCg1ril GWDRgyQDI0e/U45Ugqc5Yxw= =kX7q -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- From pdw@sphinx.mythic-beasts.com Sun Jun 08 19:48:10 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19P5D8-0000XA-00; Sun, 08 Jun 2003 19:48:10 +0100 Date: Sun, 8 Jun 2003 19:48:10 +0100 From: Paul Warren To: Jonathan Abbey Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] v0.13pre1 Message-ID: <20030608194810.B30117@sphinx.mythic-beasts.com> References: <20030608191003.A30117@sphinx.mythic-beasts.com> <20030608183951.GA24846@arlut.utexas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030608183951.GA24846@arlut.utexas.edu>; from jonabbey@arlut.utexas.edu on Sun, Jun 08, 2003 at 01:39:51PM -0500 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sun, Jun 08, 2003 at 01:39:51PM -0500, Jonathan Abbey wrote: > > The only other change is to make failure to find hardware/ethernet > > addresses non-fatal. > > The addrs_dlpi.c file isn't set up to fail non-fatally as it stands. Yeah - I realised that. The non-fatal failure thing came up after the 0.12 release, so I merged the changes with your patch, but only for the ioctl code and left the other code as a TODO (see comment at the top of addrs_dlpi.c). This came up as an issue when running iftop on an i/f with no IP address. Thanks for the patch - now in CVS. Paul From pdw@sphinx.mythic-beasts.com Mon Jun 09 20:35:10 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19PSQA-00040t-00 for iftop-users@lists.beasts.org; Mon, 09 Jun 2003 20:35:10 +0100 Date: Mon, 9 Jun 2003 20:35:10 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030609203510.A12739@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: [Iftop-users] iftop 0.13pre2 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: 0.13pre2 is now available from: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.13pre2.tar.gz Add cummulative line totals (press "T") Errors during IP/MAC address discovery are now non-fatal when using dlpi. Paul From jonabbey@arlut.utexas.edu Mon Jun 09 20:51:33 2003 Received: from ns2.arlut.utexas.edu ([129.116.174.1]) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19PSg0-0004Uy-00 for iftop-users@lists.beasts.org; Mon, 09 Jun 2003 20:51:32 +0100 Received: from ns5.arlut.utexas.edu (ns5.arlut.utexas.edu [10.4.1.6]) by ns2.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h59JpUTQ050855; Mon, 9 Jun 2003 14:51:30 -0500 (CDT) Received: from csdsun1.arlut.utexas.edu (csdsun1.arlut.utexas.edu [10.10.16.165]) by ns5.arlut.utexas.edu (8.12.9/8.12.9) with ESMTP id h59JpU8q020981; Mon, 9 Jun 2003 14:51:30 -0500 (CDT) Received: (from broccol@localhost) by csdsun1.arlut.utexas.edu (8.11.6+Sun/8.11.6) id h59JpTP08131; Mon, 9 Jun 2003 14:51:29 -0500 (CDT) Date: Mon, 9 Jun 2003 14:51:29 -0500 From: Jonathan Abbey To: Paul Warren Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop 0.13pre2 Message-ID: <20030609195129.GA5056@arlut.utexas.edu> References: <20030609203510.A12739@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: <20030609203510.A12739@sphinx.mythic-beasts.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 09, 2003 at 08:35:10PM +0100, Paul Warren wrote: | 0.13pre2 is now available from: |=20 | http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.13pre2.tar.gz |=20 | Add cummulative line totals (press "T") | Errors during IP/MAC address discovery are now non-fatal when using | dlpi. Looks great. The cummulative line totals is a very nice feature. --=20 ---------------------------------------------------------------------------= ---- Jonathan Abbey jonabbey@arlut.utexas.edu Applied Research Laboratories The University of Texas at Au= stin GPG Key: 71767586 at keyserver pgp.mit.edu, http://www.ganymeta.org/workkey= .gpg --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (SunOS) iD8DBQE+5OVBGI9EwHF2dYYRAvhcAKDORCQwbYKYIJ03H27RxwhjYLkvqwCdHnmx Ngosx9pVzV+0ixA4IUgzaZE= =zvVp -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv-- From x123@ns1.onperfect.com Sun Jul 06 17:49:39 2003 Received: from [64.223.202.250] (helo=onperfect.com) by sphinx.mythic-beasts.com with smtp (Exim 3.33 #2) id 19ZChm-0007CI-00 for iftop-users@lists.beasts.org; Sun, 06 Jul 2003 17:49:38 +0100 Received: (qmail 22057 invoked by uid 2583); 6 Jul 2003 16:50:14 -0000 Message-ID: <20030706165014.22056.qmail@onperfect.com> From: x123@onperfect.com To: iftop-users@lists.beasts.org Date: Sun, 06 Jul 2003 12:50:14 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: [Iftop-users] by port Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Ok, I'm going to apologize ahead of time for being thick headed. I'm just missing it I guess. We've been using iftop for months. In the past couple of months iftop is in continuous use. We have a wireless network 50 nodes, 11 Mbps funneling into a T-1. We have some abusers of course. Otherwise it would run fine. I was looking at the iftop home page and saw there is a way to turn on source port, but can't figure out how. The below line appears, but I don't know how to get that to happen either. Thank You in advance for your patience and your help. For starters how to we get that exact screen? Host names hidden, source port shown, one line per host pair = network traffic by service From sopm@mail.tzptt.zj.cn Sat Aug 16 01:58:01 2003 Received: from [220.185.161.172] (helo=mail.tzptt.zj.cn) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19npOJ-0002g6-00 for iftop-users@lists.beasts.org; Sat, 16 Aug 2003 01:58:01 +0100 From: "lee jun" To: iftop-users@lists.beasts.org Content-Type: text/plain;charset="GB2312" Reply-To: mould@china.com Date: Sat, 16 Aug 2003 08:57:58 +0800 X-Priority: 3 X-Mailer: FoxMail 4.0 beta 2 [cn] Message-Id: Subject: [Iftop-users] mould & moulding offer Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: www.cnmould.com Dear Sir, How are you? We are plastic mould manufacturer located in China, can offer you top quality design and tooling. Please check our website for further information. thank you and best regards, SOPM Marketing Depart. Sino-Origin Plastic Mould Manufacturer Ltd. Sino Plastic Machinery Manufacturer Ltd. 32#Dong Rd. western Huangyan, Zhejiang, China. tel: 86-576-4023777 / 4023559 fax: 86-576-4018996 / 4050163 email: mould@china.com www.cnmould.com (contructuring) From sirid@positivemind.com Sat Aug 23 01:41:32 2003 Received: from [128.223.40.125] (helo=naad.positivemind.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19qMTD-0004jc-00 for iftop-users@lists.beasts.org; Sat, 23 Aug 2003 01:41:32 +0100 Received: from positivemind.com (localhost [127.0.0.1]) by naad.positivemind.com (Postfix) with ESMTP id A8FA46BBFA for ; Fri, 22 Aug 2003 17:41:30 -0700 (PDT) Message-ID: <3F46B83A.50609@positivemind.com> Date: Fri, 22 Aug 2003 17:41:30 -0700 From: Siri Dhyan Singh User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030727 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: iftop-users@lists.beasts.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-5.8 required=5.0 tests=USER_AGENT_MOZILLA_UA version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] mac os x 10.2.6 compile? Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Greetings, I'm trying to get 0.13 to compile and it gets to here and hangs. configure: WARNING: using single-threaded resolver with gethostbyaddr Consider obtaining ARES or a machine with a working gethostbyaddr_r. checking where to find pcap.h... /include checking for pcap_open_live in -lpcap... yes checking pcap.h usability... yes checking pcap.h presence... yes checking for pcap.h... yes checking for a curses library containing mvchgat... -lcurses checking how to compile a working program with POSIX threads... Any ideas? thanks, Siri Dhyan Singh From chris@ex-parrot.com Sat Aug 23 12:48:26 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19qWsb-0004Qr-00 for iftop-users@lists.beasts.org; Sat, 23 Aug 2003 12:48:25 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7NC8f49001274; Sat, 23 Aug 2003 13:08:41 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19qWsa-0004sU-00; Sat, 23 Aug 2003 12:48:24 +0100 Date: Sat, 23 Aug 2003 12:48:24 +0100 From: Chris Lightfoot To: Siri Dhyan Singh Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030823114824.GC17363@caesious.cold.local> References: <3F46B83A.50609@positivemind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F46B83A.50609@positivemind.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote: > Greetings, > > I'm trying to get 0.13 to compile and it gets to here and hangs. > > configure: WARNING: using single-threaded resolver with gethostbyaddr > Consider obtaining ARES or a machine with a working gethostbyaddr_r. > checking where to find pcap.h... /include > checking for pcap_open_live in -lpcap... yes > checking pcap.h usability... yes > checking pcap.h presence... yes > checking for pcap.h... yes > checking for a curses library containing mvchgat... -lcurses > checking how to compile a working program with POSIX threads... > > Any ideas? Yep. It's a brokenness in Mac OS's POSIX threads routines. I'll try to do a fix later. -- If you see a long line of rats streaming off of a ship, the correct assumption is not `Gosh, I bet that's a real nice boat now that those rats are gone.' (Mike Sphar) From chris@ex-parrot.com Sat Aug 23 19:29:39 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19qd8t-0001sZ-00 for iftop-users@lists.beasts.org; Sat, 23 Aug 2003 19:29:39 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7NInt49001634; Sat, 23 Aug 2003 19:49:56 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19qd8s-0005nQ-00; Sat, 23 Aug 2003 19:29:38 +0100 Date: Sat, 23 Aug 2003 19:29:38 +0100 From: Chris Lightfoot To: Siri Dhyan Singh Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030823182938.GB28002@caesious.cold.local> References: <3F46B83A.50609@positivemind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F46B83A.50609@positivemind.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-38.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote: > Greetings, > > I'm trying to get 0.13 to compile and it gets to here and hangs. > > configure: WARNING: using single-threaded resolver with gethostbyaddr > Consider obtaining ARES or a machine with a working gethostbyaddr_r. > checking where to find pcap.h... /include > checking for pcap_open_live in -lpcap... yes > checking pcap.h usability... yes > checking pcap.h presence... yes > checking for pcap.h... yes > checking for a curses library containing mvchgat... -lcurses > checking how to compile a working program with POSIX threads... > > Any ideas? Please could you try applying the following patch and re-running configure? diff -u -r1.1 pthread.c --- config/pthread.c 2002/11/04 12:27:35 1.1 +++ config/pthread.c 2003/08/23 18:29:11 @@ -24,7 +24,7 @@ pthread_cond_signal(&cond); pthread_mutex_unlock(&mtx); while (1) - pause(); + pthread_testcancel(); } -- ``Pirates only run for two things: money and public office.'' (`Yosemite Sam') From chris@ex-parrot.com Sat Aug 23 19:36:47 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19qdFn-00027q-00 for iftop-users@lists.beasts.org; Sat, 23 Aug 2003 19:36:47 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7NIv449001645; Sat, 23 Aug 2003 19:57:04 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19qdFk-0005pi-00; Sat, 23 Aug 2003 19:36:44 +0100 Date: Sat, 23 Aug 2003 19:36:44 +0100 From: Chris Lightfoot To: Siri Dhyan Singh , Paul Warren Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030823183644.GC28002@caesious.cold.local> References: <3F46B83A.50609@positivemind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F46B83A.50609@positivemind.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-38.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote: > Greetings, > > I'm trying to get 0.13 to compile and it gets to here and hangs. > > configure: WARNING: using single-threaded resolver with gethostbyaddr > Consider obtaining ARES or a machine with a working gethostbyaddr_r. [ aside to Paul: Mac OS X, being BSD, has no thread-safe way to resolve names. There is no need to act surprised at this point. But maybe we should write a Netscape-style forking asynchronous resolver? ] > checking where to find pcap.h... /include > checking for pcap_open_live in -lpcap... yes > checking pcap.h usability... yes > checking pcap.h presence... yes > checking for pcap.h... yes > checking for a curses library containing mvchgat... -lcurses > checking how to compile a working program with POSIX threads... > > Any ideas? with the patch I just sent, and the following: diff -u -r1.32 options.c --- options.c 2003/03/01 01:55:13 1.32 +++ options.c 2003/08/23 18:33:21 @@ -134,7 +134,7 @@ options.netfiltermask.s_addr = htonl(0xffffffffl); } else { - uint32_t mm = 0xffffffffl; + u_int32_t mm = 0xffffffffl; mm >>= n; options.netfiltermask.s_addr = htonl(~mm); } iftop compiles and runs happily. -- ``... Traverse the curve, carrying a spear, in a time less than that it takes for a lion to walk its own length.'' (How To Hunt A Lion: the Peano method) From sirid@positivemind.com Mon Aug 25 20:17:55 2003 Received: from [128.223.40.125] (helo=naad.positivemind.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rMqh-0007U1-00 for iftop-users@lists.beasts.org; Mon, 25 Aug 2003 20:17:55 +0100 Received: from positivemind.com (localhost [127.0.0.1]) by naad.positivemind.com (Postfix) with ESMTP id 93EE86BCCE; Sat, 23 Aug 2003 10:06:24 -0700 (PDT) Message-ID: <3F479F0F.1000500@positivemind.com> Date: Sat, 23 Aug 2003 10:06:23 -0700 From: Siri Dhyan Singh User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030727 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Lightfoot Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> In-Reply-To: <20030823114824.GC17363@caesious.cold.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-32.2 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Chris Lightfoot wrote: > On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote: > >>Greetings, >> >>I'm trying to get 0.13 to compile and it gets to here and hangs. >> >>configure: WARNING: using single-threaded resolver with gethostbyaddr >> Consider obtaining ARES or a machine with a working gethostbyaddr_r. >>checking where to find pcap.h... /include >>checking for pcap_open_live in -lpcap... yes >>checking pcap.h usability... yes >>checking pcap.h presence... yes >>checking for pcap.h... yes >>checking for a curses library containing mvchgat... -lcurses >>checking how to compile a working program with POSIX threads... >> >>Any ideas? > > > Yep. It's a brokenness in Mac OS's POSIX threads routines. > I'll try to do a fix later. Alright thanks! I'm fairly lightweight when it comes to C/C++ but I do have a programming background so if there's anything I can do to help please let me know. Kind Regards, -Siri Dhyan > From chris@ex-parrot.com Mon Aug 25 20:48:55 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rNKh-0008Bd-00 for iftop-users@lists.beasts.org; Mon, 25 Aug 2003 20:48:55 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7PK9H49010011; Mon, 25 Aug 2003 21:09:17 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19rNKg-0002ip-00; Mon, 25 Aug 2003 20:48:54 +0100 Date: Mon, 25 Aug 2003 20:48:54 +0100 From: Chris Lightfoot To: Siri Dhyan Singh Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030825194854.GA10379@caesious.cold.local> References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> <3F479F0F.1000500@positivemind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F479F0F.1000500@positivemind.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sat, Aug 23, 2003 at 10:06:23AM -0700, Siri Dhyan Singh wrote: > Chris Lightfoot wrote: > >Yep. It's a brokenness in Mac OS's POSIX threads routines. > >I'll try to do a fix later. (At this point I should say that I think the Mac OS behaviour is in fact standards-compliant, but unhelpful.) > Alright thanks! > > I'm fairly lightweight when it comes to C/C++ but I do have a > programming background so if there's anything I can do to help please > let me know. Have you tried the two patches I sent? iftop compiles fine on my Mac now but I suspect my version is a little out of sync with 0.13. (Stop reading here if you don't want to know the gory details.) The background to this problem: different systems need different combinations of compiler options to get working POSIX threads support. Linux and Solaris, in particular, are quite different, and IIRC the compiler options which work on Linux give programs which compile *but when run cannot start threads* on Solaris. So config/pthread.c is a small test program which spawns a thread which then changes the value of a variable; the controlling thread then cancels the subthread and verifies that the variable's value has changed. This allows us to detect whether we have threads that work at all; the configure script can try compiling this program with various different options until it works. Unfortunately, on Mac OS X, the program hung while trying to cancel (==kill) the subthread. This was because I had assumed -- incorrectly, it seems -- that the function yield(2) was a cancellation point. While it is (or appears to be) on Linux and Solaris, it isn't in Mac OS X. While this might seem surprising, it apparently conforms to the standard. Slightly more surprisingly, replacing yield() with sleep(1) also caused the thing to hang, which I believe is wrong, since http://www.opengroup.org/onlinepubs/7908799/xsh/threads.html lists sleep as a cancellation point. The take home message? Threads: Just Say No. -- Gentlemen! You can't fight in here! This is the War Room! (from `Dr. Strangelove') From sirid@positivemind.com Mon Aug 25 22:26:28 2003 Received: from [128.223.40.125] (helo=naad.positivemind.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rOr5-00021B-00 for iftop-users@lists.beasts.org; Mon, 25 Aug 2003 22:26:28 +0100 Received: from positivemind.com (localhost [127.0.0.1]) by naad.positivemind.com (Postfix) with ESMTP id 8C7B66C107; Mon, 25 Aug 2003 14:26:26 -0700 (PDT) Message-ID: <3F4A7F02.3080504@positivemind.com> Date: Mon, 25 Aug 2003 14:26:26 -0700 From: Siri Dhyan Singh User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030727 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Lightfoot Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> <3F479F0F.1000500@positivemind.com> <20030825194854.GA10379@caesious.cold.local> In-Reply-To: <20030825194854.GA10379@caesious.cold.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MOZILLA_UA version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Chris Lightfoot wrote: > On Sat, Aug 23, 2003 at 10:06:23AM -0700, Siri Dhyan Singh wrote: > >>Chris Lightfoot wrote: > > >>>Yep. It's a brokenness in Mac OS's POSIX threads routines. >>>I'll try to do a fix later. > > > (At this point I should say that I think the Mac OS > behaviour is in fact standards-compliant, but unhelpful.) > > >>Alright thanks! >> >>I'm fairly lightweight when it comes to C/C++ but I do have a >>programming background so if there's anything I can do to help please >>let me know. > > > Have you tried the two patches I sent? iftop compiles fine > on my Mac now but I suspect my version is a little out of > sync with 0.13. I just applied the patches and it seems to be working fine. I supply a n interface of en0 as its OS X and I'm off and running. > > > (Stop reading here if you don't want to know the gory > details.) > > The background to this problem: different systems need > different combinations of compiler options to get working > POSIX threads support. Linux and Solaris, in particular, > are quite different, and IIRC the compiler options which > work on Linux give programs which compile *but when run > cannot start threads* on Solaris. ahh how nice and frustrating :-) > > So config/pthread.c is a small test program which spawns a > thread which then changes the value of a variable; the > controlling thread then cancels the subthread and verifies > that the variable's value has changed. This allows us to > detect whether we have threads that work at all; the > configure script can try compiling this program with > various different options until it works. > > Unfortunately, on Mac OS X, the program hung while trying > to cancel (==kill) the subthread. This was because I had > assumed -- incorrectly, it seems -- that the function > yield(2) was a cancellation point. While it is (or appears > to be) on Linux and Solaris, it isn't in Mac OS X. While > this might seem surprising, it apparently conforms to the > standard. Slightly more surprisingly, replacing yield() > with sleep(1) also caused the thing to hang, which I > believe is wrong, since > http://www.opengroup.org/onlinepubs/7908799/xsh/threads.html > lists sleep as a cancellation point. > > The take home message? Threads: Just Say No. many thanks -Siri dhyan > From sirid@positivemind.com Mon Aug 25 23:50:50 2003 Received: from [128.223.40.125] (helo=naad.positivemind.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rQAk-0004Yh-00 for iftop-users@lists.beasts.org; Mon, 25 Aug 2003 23:50:50 +0100 Received: from positivemind.com (localhost [127.0.0.1]) by naad.positivemind.com (Postfix) with ESMTP id 356CD6C3E2 for ; Mon, 25 Aug 2003 15:50:51 -0700 (PDT) Message-ID: <3F4A92CA.3080908@positivemind.com> Date: Mon, 25 Aug 2003 15:50:50 -0700 From: Siri Dhyan Singh User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030727 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> <3F479F0F.1000500@positivemind.com> <20030825194854.GA10379@caesious.cold.local> <3F4A7F02.3080504@positivemind.com> In-Reply-To: <3F4A7F02.3080504@positivemind.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-38.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Siri Dhyan Singh wrote: > > > Chris Lightfoot wrote: > >> On Sat, Aug 23, 2003 at 10:06:23AM -0700, Siri Dhyan Singh wrote: >> >>> Chris Lightfoot wrote: >> >> >> >>>> Yep. It's a brokenness in Mac OS's POSIX threads routines. >>>> I'll try to do a fix later. >> >> >> >> (At this point I should say that I think the Mac OS >> behaviour is in fact standards-compliant, but unhelpful.) >> >> >>> Alright thanks! >>> >>> I'm fairly lightweight when it comes to C/C++ but I do have a >>> programming background so if there's anything I can do to help please >>> let me know. >> >> >> >> Have you tried the two patches I sent? iftop compiles fine >> on my Mac now but I suspect my version is a little out of >> sync with 0.13. > > > I just applied the patches and it seems to be working fine. I supply a > n interface of en0 as its OS X and I'm off and running. A little more background here. Basically on OS X 10.2.6 (and other BSDs I suspect) I'm pulling up a couple of pseudo devices used for tunneling which are probably not appropriate as defaults for iftop. Here's a little patch. My first code contribution to an open source project - a historic moment ;-). diff -u options.orig options.c --- options.orig Mon Aug 25 15:30:26 2003 +++ options.c Mon Aug 25 15:33:32 2003 @@ -40,6 +40,8 @@ static char *bad_interface_names[] = { "lo:", "lo", + "stf", //pseudo-device 6to4 tunnel interface + "gif", //psuedo-device generic tunnel interface "dummy", "vmnet", NULL /* last entry must be NULL */ Kind Regards, Siri Dhyan > >> >> >> (Stop reading here if you don't want to know the gory >> details.) >> >> The background to this problem: different systems need >> different combinations of compiler options to get working >> POSIX threads support. Linux and Solaris, in particular, >> are quite different, and IIRC the compiler options which >> work on Linux give programs which compile *but when run >> cannot start threads* on Solaris. > > > ahh how nice and frustrating :-) > >> >> So config/pthread.c is a small test program which spawns a >> thread which then changes the value of a variable; the >> controlling thread then cancels the subthread and verifies >> that the variable's value has changed. This allows us to >> detect whether we have threads that work at all; the >> configure script can try compiling this program with >> various different options until it works. >> >> Unfortunately, on Mac OS X, the program hung while trying >> to cancel (==kill) the subthread. This was because I had >> assumed -- incorrectly, it seems -- that the function >> yield(2) was a cancellation point. While it is (or appears >> to be) on Linux and Solaris, it isn't in Mac OS X. While >> this might seem surprising, it apparently conforms to the >> standard. Slightly more surprisingly, replacing yield() >> with sleep(1) also caused the thing to hang, which I >> believe is wrong, since >> http://www.opengroup.org/onlinepubs/7908799/xsh/threads.html >> lists sleep as a cancellation point. >> >> The take home message? Threads: Just Say No. > > > many thanks > > -Siri dhyan > >> > > > _______________________________________________ > iftop-users mailing list > iftop-users@lists.beasts.org > http://lists.beasts.org/mailman/listinfo/iftop-users From chris@ex-parrot.com Tue Aug 26 00:31:14 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rQnq-0005bV-00 for iftop-users@lists.beasts.org; Tue, 26 Aug 2003 00:31:14 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7PNpW49010279; Tue, 26 Aug 2003 00:51:32 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19rQnk-0003xT-00; Tue, 26 Aug 2003 00:31:08 +0100 Date: Tue, 26 Aug 2003 00:31:08 +0100 From: Chris Lightfoot To: Siri Dhyan Singh Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030825233108.GD12619@caesious.cold.local> References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> <3F479F0F.1000500@positivemind.com> <20030825194854.GA10379@caesious.cold.local> <3F4A7F02.3080504@positivemind.com> <3F4A92CA.3080908@positivemind.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F4A92CA.3080908@positivemind.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Mon, Aug 25, 2003 at 03:50:50PM -0700, Siri Dhyan Singh wrote: > Siri Dhyan Singh wrote: > >I just applied the patches and it seems to be working fine. I supply a > >n interface of en0 as its OS X and I'm off and running. > > A little more background here. Basically on OS X 10.2.6 (and other BSDs > I suspect) I'm pulling up a couple of pseudo devices used for tunneling > which are probably not appropriate as defaults for iftop. Here's a > little patch. My first code contribution to an open source project - a > historic moment ;-). > > diff -u options.orig options.c > --- options.orig Mon Aug 25 15:30:26 2003 > +++ options.c Mon Aug 25 15:33:32 2003 > @@ -40,6 +40,8 @@ > static char *bad_interface_names[] = { > "lo:", > "lo", > + "stf", //pseudo-device 6to4 tunnel interface [ Tiny suggestion: better to use /* ... */ comments in C programs, since // is not universally supported yet. ] > + "gif", //psuedo-device generic tunnel interface > "dummy", > "vmnet", > NULL /* last entry must be NULL */ Noted. Many thanks. -- Hicks Nix Sticks Pix (headline, in `Variety', July 17 1935) From matthew@positivemind.com Tue Aug 26 01:06:37 2003 Received: from [128.223.40.125] (helo=naad.positivemind.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19rRM5-0006MF-00 for iftop-users@lists.beasts.org; Tue, 26 Aug 2003 01:06:37 +0100 Received: from positivemind.com (localhost [127.0.0.1]) by naad.positivemind.com (Postfix) with ESMTP id A0A686C586; Mon, 25 Aug 2003 17:06:33 -0700 (PDT) Message-ID: <3F4AA489.9060706@positivemind.com> Date: Mon, 25 Aug 2003 17:06:33 -0700 From: "Matthew M. Austin" User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.5b) Gecko/20030727 Thunderbird/0.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Lightfoot Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? References: <3F46B83A.50609@positivemind.com> <20030823114824.GC17363@caesious.cold.local> <3F479F0F.1000500@positivemind.com> <20030825194854.GA10379@caesious.cold.local> <3F4A7F02.3080504@positivemind.com> <3F4A92CA.3080908@positivemind.com> <20030825233108.GD12619@caesious.cold.local> In-Reply-To: <20030825233108.GD12619@caesious.cold.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MOZILLA_UA version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Chris Lightfoot wrote: > On Mon, Aug 25, 2003 at 03:50:50PM -0700, Siri Dhyan Singh wrote: > >>Siri Dhyan Singh wrote: > > >>>I just applied the patches and it seems to be working fine. I supply a >>>n interface of en0 as its OS X and I'm off and running. >> >>A little more background here. Basically on OS X 10.2.6 (and other BSDs >>I suspect) I'm pulling up a couple of pseudo devices used for tunneling >>which are probably not appropriate as defaults for iftop. Here's a >>little patch. My first code contribution to an open source project - a >>historic moment ;-). >> >>diff -u options.orig options.c >>--- options.orig Mon Aug 25 15:30:26 2003 >>+++ options.c Mon Aug 25 15:33:32 2003 >>@@ -40,6 +40,8 @@ >> static char *bad_interface_names[] = { >> "lo:", >> "lo", >>+ "stf", //pseudo-device 6to4 tunnel interface > > > [ Tiny suggestion: better to use /* ... */ comments in C > programs, since // is not universally supported yet. ] And here I was wondering why you had used multiline comments for single lines having forgotten that tidbit about C. I'll keep that in mind going forward. > > >>+ "gif", //psuedo-device generic tunnel interface >> "dummy", >> "vmnet", >> NULL /* last entry must be NULL */ > > > Noted. Many thanks. > From pdw@sphinx.mythic-beasts.com Tue Aug 26 10:53:26 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19raVw-0004oK-00; Tue, 26 Aug 2003 10:53:24 +0100 Date: Tue, 26 Aug 2003 10:53:24 +0100 From: Paul Warren To: Chris Lightfoot Cc: Siri Dhyan Singh , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] mac os x 10.2.6 compile? Message-ID: <20030826105324.N31377@sphinx.mythic-beasts.com> References: <3F46B83A.50609@positivemind.com> <20030823183644.GC28002@caesious.cold.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030823183644.GC28002@caesious.cold.local>; from chris@ex-parrot.com on Sat, Aug 23, 2003 at 07:36:44PM +0100 X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Sat, Aug 23, 2003 at 07:36:44PM +0100, Chris Lightfoot wrote: > On Fri, Aug 22, 2003 at 05:41:30PM -0700, Siri Dhyan Singh wrote: > > Greetings, > > > > I'm trying to get 0.13 to compile and it gets to here and hangs. > > > > configure: WARNING: using single-threaded resolver with gethostbyaddr > > Consider obtaining ARES or a machine with a working gethostbyaddr_r. > > [ aside to Paul: Mac OS X, being BSD, has no thread-safe > way to resolve names. There is no need to act surprised > at this point. But maybe we should write a > Netscape-style forking asynchronous resolver? ] I assume you are speaking of a different type of asynchronous resolver to that found in Netscape 4.x which caused all windows to crash should one window fail to resolve a host name? Paul From sjb@ambrielconsulting.com Tue Aug 26 13:34:24 2003 Received: from 62-241-188-167.dsl.pipex.com ([62.241.188.167] helo=jupiter.helios.local) by sphinx.mythic-beasts.com with asmtp (Exim 3.33 #2) id 19rd1j-0001uS-00 for iftop-users@lists.beasts.org; Tue, 26 Aug 2003 13:34:24 +0100 From: Steven J Baker To: iftop-users@lists.beasts.org Content-Type: text/plain Organization: Ambriel Consulting Message-Id: <1061901210.11146.1.camel@jupiter.helios.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Tue, 26 Aug 2003 13:33:30 +0100 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_XIMIAN version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] iftop in Mac OS X Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Works for me too. Splendid :-) -- Steven J Baker Ambriel Consulting From pdw@sphinx.mythic-beasts.com Tue Aug 26 13:44:24 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19rdBL-0002NV-00; Tue, 26 Aug 2003 13:44:19 +0100 Date: Tue, 26 Aug 2003 13:44:19 +0100 From: Paul Warren To: Steven J Baker Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop in Mac OS X Message-ID: <20030826134419.U31377@sphinx.mythic-beasts.com> References: <1061901210.11146.1.camel@jupiter.helios.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <1061901210.11146.1.camel@jupiter.helios.local>; from sjb@ambrielconsulting.com on Tue, Aug 26, 2003 at 01:33:30PM +0100 X-Spam-Status: No, hits=-29.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Tue, Aug 26, 2003 at 01:33:30PM +0100, Steven J Baker wrote: > Works for me too. Splendid :-) Sounds like a release is called for. cat >> TODO. Paul From pdw@sphinx.mythic-beasts.com Wed Aug 27 19:46:25 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19s5JJ-0002p4-00 for iftop-users@lists.beasts.org; Wed, 27 Aug 2003 19:46:25 +0100 Date: Wed, 27 Aug 2003 19:46:25 +0100 From: Paul Warren To: iftop-users@lists.beasts.org Message-ID: <20030827194625.A10536@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] iftop 0.14pre1 Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: iftop 0.14pre1 is now available from: http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.14pre1.tar.gz The only changes are the Mac OS X fixes, but please do give it a go and let me know if it's not working. thanks, Paul From mitc60@hotmail.com Thu Aug 28 09:11:22 2003 Received: from sea2-f27.sea2.hotmail.com ([207.68.165.27] helo=hotmail.com) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19sHsI-00062p-00 for iftop-users@lists.beasts.org; Thu, 28 Aug 2003 09:11:22 +0100 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 28 Aug 2003 01:10:50 -0700 Received: from 210.23.228.31 by sea2fd.sea2.hotmail.msn.com with HTTP; Thu, 28 Aug 2003 08:10:49 GMT X-Originating-IP: [210.23.228.31] X-Originating-Email: [mitc60@hotmail.com] From: "mitc company" To: iftop-users@lists.beasts.org Bcc: Date: Thu, 28 Aug 2003 08:10:49 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 28 Aug 2003 08:10:50.0492 (UTC) FILETIME=[E4C1F3C0:01C36D3B] X-Spam-Status: No, hits=0.6 required=5.0 tests=FROM_ENDS_IN_NUMS version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] Periodic dump of data Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Hello, Is it possible to have iftop dump it counters to a file periodically. Iftop can nicely show me the current network utilization but it would be nice if I can graph this over time. _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From pdw@sphinx.mythic-beasts.com Thu Aug 28 11:29:33 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19sK21-0003LP-00; Thu, 28 Aug 2003 11:29:33 +0100 Date: Thu, 28 Aug 2003 11:29:33 +0100 From: Paul Warren To: mitc company Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] Periodic dump of data Message-ID: <20030828112933.L31325@sphinx.mythic-beasts.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from mitc60@hotmail.com on Thu, Aug 28, 2003 at 08:10:49AM +0000 X-Spam-Status: No, hits=-29.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, Aug 28, 2003 at 08:10:49AM +0000, mitc company wrote: > Is it possible to have iftop dump it counters to a file periodically. Iftop > can nicely show me the current network utilization but it would be nice if I > can graph this over time. What data do you want dumped? Instantaneous total bandwidth? Instantaneous bandwidth for all hosts? I'm reluctant to put this in as there are other tools available to graph bandwidth usage over a long period of time, in the same way that there are tools to graph CPU usage over time and this functionality is therefore not included in top. Paul From admin@ntworks.org Thu Aug 28 19:57:15 2003 Received: from ip68-107-178-236.lu.dl.cox.net ([68.107.178.236] helo=mail.ntworks.org) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19sRxK-00024i-00 for iftop-users@lists.beasts.org; Thu, 28 Aug 2003 19:57:14 +0100 Received: by mail.ntworks.org (Postfix, from userid 100) id 956E0A6992; Thu, 28 Aug 2003 13:57:10 -0500 (CDT) Received: from athena (unknown [192.168.0.100]) by mail.ntworks.org (Postfix) with ESMTP id 8A51AA6990 for ; Thu, 28 Aug 2003 13:57:06 -0500 (CDT) From: "Michael" To: Date: Thu, 28 Aug 2003 13:54:38 -0700 Message-ID: <000501c36da6$9c15d0e0$6400a8c0@athena> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Subject: [Iftop-users] iftop on openbsd Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday from the current /snapshot/i386/ openbsd directory) It seems to work except once loaded I cant stop it with "q" like I can in linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have to open a new bash shell and kill -9 its pid Anyone use iftop on openbsd with no probs? From pdw@sphinx.mythic-beasts.com Fri Aug 29 16:51:56 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19slXV-00019m-00; Fri, 29 Aug 2003 16:51:53 +0100 Date: Fri, 29 Aug 2003 16:51:53 +0100 From: Paul Warren To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829165153.C10290@sphinx.mythic-beasts.com> References: <000501c36da6$9c15d0e0$6400a8c0@athena> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000501c36da6$9c15d0e0$6400a8c0@athena>; from admin@ntworks.org on Thu, Aug 28, 2003 at 01:54:38PM -0700 X-Spam-Status: No, hits=-29.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Thu, Aug 28, 2003 at 01:54:38PM -0700, Michael wrote: > I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday > from the current /snapshot/i386/ openbsd directory) > > It seems to work except once loaded I cant stop it with "q" like I can in > linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have > to open a new bash shell and kill -9 its pid > > Anyone use iftop on openbsd with no probs? I'm not ignoring this, I just don't know the answer :-( After you press "q" does it keep on running to the extent that you can still press keys and have them do stuff? My guess is that it's a difference in the handling of threads (is that vague enough?), and the stuff that makes is quit is stuff that Chris wrote Paul From chris@madingley.org Fri Aug 29 16:54:13 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19slZk-0001GX-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 16:54:12 +0100 Received: from aquila.esc.cam.ac.uk (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7TGEi49006449; Fri, 29 Aug 2003 17:14:44 +0100 Received: (from chris@localhost) by aquila.esc.cam.ac.uk (8.12.5/8.12.5) id h7TFsBbR021831; Fri, 29 Aug 2003 16:54:11 +0100 Date: Fri, 29 Aug 2003 16:54:11 +0100 From: Chris Lightfoot To: Paul Warren Cc: Michael , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829155411.GA20794@aquila.esc.cam.ac.uk> References: <000501c36da6$9c15d0e0$6400a8c0@athena> <20030829165153.C10290@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030829165153.C10290@sphinx.mythic-beasts.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 04:51:53PM +0100, Paul Warren wrote: > On Thu, Aug 28, 2003 at 01:54:38PM -0700, Michael wrote: > > I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday > > from the current /snapshot/i386/ openbsd directory) > > > > It seems to work except once loaded I cant stop it with "q" like I can in > > linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have > > to open a new bash shell and kill -9 its pid [...] > My guess is that it's a difference in the handling of threads (is that > vague enough?), and the stuff that makes is quit is action="pass">stuff that Chris wrote *groan* I wonder if OpenBSD runs under VMWare yet? Alternatively, would one of you security-conscious OpenBSD people like to give me root access to your machine? (No, I didn't think so.) -- Theoreticians have always succeeded in providing an understanding for all observed phenomena--even those which later proved to be incorrect (anonymous) From pdw@sphinx.mythic-beasts.com Fri Aug 29 17:07:30 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19slmb-0001pD-00; Fri, 29 Aug 2003 17:07:29 +0100 Date: Fri, 29 Aug 2003 17:07:29 +0100 From: Paul Warren To: Chris Lightfoot Cc: Michael , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829170728.F10290@sphinx.mythic-beasts.com> References: <000501c36da6$9c15d0e0$6400a8c0@athena> <20030829165153.C10290@sphinx.mythic-beasts.com> <20030829155411.GA20794@aquila.esc.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030829155411.GA20794@aquila.esc.cam.ac.uk>; from chris@ex-parrot.com on Fri, Aug 29, 2003 at 04:54:11PM +0100 X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 04:54:11PM +0100, Chris Lightfoot wrote: > On Fri, Aug 29, 2003 at 04:51:53PM +0100, Paul Warren wrote: > > On Thu, Aug 28, 2003 at 01:54:38PM -0700, Michael wrote: > > > I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday > > > from the current /snapshot/i386/ openbsd directory) > > > > > > It seems to work except once loaded I cant stop it with "q" like I can in > > > linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have > > > to open a new bash shell and kill -9 its pid > [...] > > My guess is that it's a difference in the handling of threads (is that > > vague enough?), and the stuff that makes is quit is > action="pass">stuff that Chris wrote > > *groan* > > I wonder if OpenBSD runs under VMWare yet? Alternatively, > would one of you security-conscious OpenBSD people like to > give me root access to your machine? (No, I didn't think > so.) At a quick guess, I'd say that pcap_loop doesn't call any thread cancellation points, so it hangs on pthread_cancel. Paul From chris@madingley.org Fri Aug 29 17:13:04 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19sls0-0002Ri-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 17:13:04 +0100 Received: from aquila.esc.cam.ac.uk (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7TGXa49006525; Fri, 29 Aug 2003 17:33:36 +0100 Received: (from chris@localhost) by aquila.esc.cam.ac.uk (8.12.5/8.12.5) id h7TGD2PQ023134; Fri, 29 Aug 2003 17:13:02 +0100 Date: Fri, 29 Aug 2003 17:13:02 +0100 From: Chris Lightfoot To: Paul Warren Cc: Michael , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829161302.GB22440@aquila.esc.cam.ac.uk> References: <000501c36da6$9c15d0e0$6400a8c0@athena> <20030829165153.C10290@sphinx.mythic-beasts.com> <20030829155411.GA20794@aquila.esc.cam.ac.uk> <20030829170728.F10290@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030829170728.F10290@sphinx.mythic-beasts.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-39.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF, QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 05:07:29PM +0100, Paul Warren wrote: > On Fri, Aug 29, 2003 at 04:54:11PM +0100, Chris Lightfoot wrote: > > > My guess is that it's a difference in the handling of threads (is that > > > vague enough?), and the stuff that makes is quit is > > action="pass">stuff that Chris wrote [...] > At a quick guess, I'd say that pcap_loop doesn't call any thread > cancellation points, so it hangs on pthread_cancel. Ah, that's a good point. That said, I'm surprised that quitting works on Mac OS X if that's the problem.... Try this patch: (not absolutely certain about the second parameter to pcap_dispatch; try 1 if -1 doesn't work) diff -u -r1.44 iftop.c --- iftop.c 2003/05/20 21:14:37 1.44 +++ iftop.c 2003/08/29 16:10:06 @@ -528,7 +528,9 @@ /* packet_loop: * Worker function for packet capture thread. */ void packet_loop(void* ptr) { - pcap_loop(pd,-1,(pcap_handler)packet_handler,NULL); + /* Make sure that this thread is cancellable. */ + while (pcap_dispatch(p, -1, (pcap_handler)packet_handler, NULL) != -1) + pcap_testcancel(); } (I should say that I don't recall being the one to put the PCAP stuff in a thread. I have a horror of threads anyway....) -- ``... you cannot make a pair of croak-voiced Daleks appear benevolent even if you dress one of them up in an Armani suit and call the other Marmaduke.'' (Dennis Potter, on ex-BBC big cheeses John Birt and Marmaduke Hussey) From pdw@sphinx.mythic-beasts.com Fri Aug 29 17:26:48 2003 Received: from pdw by sphinx.mythic-beasts.com with local (Exim 3.33 #2) id 19sm5F-0002rl-00; Fri, 29 Aug 2003 17:26:45 +0100 Date: Fri, 29 Aug 2003 17:26:45 +0100 From: Paul Warren To: Chris Lightfoot Cc: Michael , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829172645.G10290@sphinx.mythic-beasts.com> References: <000501c36da6$9c15d0e0$6400a8c0@athena> <20030829165153.C10290@sphinx.mythic-beasts.com> <20030829155411.GA20794@aquila.esc.cam.ac.uk> <20030829170728.F10290@sphinx.mythic-beasts.com> <20030829161302.GB22440@aquila.esc.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030829161302.GB22440@aquila.esc.cam.ac.uk>; from chris@ex-parrot.com on Fri, Aug 29, 2003 at 05:13:02PM +0100 X-Spam-Status: No, hits=-32.8 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 05:13:02PM +0100, Chris Lightfoot wrote: > On Fri, Aug 29, 2003 at 05:07:29PM +0100, Paul Warren wrote: > > On Fri, Aug 29, 2003 at 04:54:11PM +0100, Chris Lightfoot wrote: > > > > > My guess is that it's a difference in the handling of threads (is that > > > > vague enough?), and the stuff that makes is quit is > > > action="pass">stuff that Chris wrote > [...] > > At a quick guess, I'd say that pcap_loop doesn't call any thread > > cancellation points, so it hangs on pthread_cancel. > > Ah, that's a good point. That said, I'm surprised that > quitting works on Mac OS X if that's the problem.... > > Try this patch: (not absolutely certain about the second > parameter to pcap_dispatch; try 1 if -1 doesn't work) > > > diff -u -r1.44 iftop.c > --- iftop.c 2003/05/20 21:14:37 1.44 > +++ iftop.c 2003/08/29 16:10:06 > @@ -528,7 +528,9 @@ > /* packet_loop: > * Worker function for packet capture thread. */ > void packet_loop(void* ptr) { > - pcap_loop(pd,-1,(pcap_handler)packet_handler,NULL); > + /* Make sure that this thread is cancellable. */ > + while (pcap_dispatch(p, -1, (pcap_handler)packet_handler, NULL) != -1) > + pcap_testcancel(); > } ITYM pthread_testcancel, and that'll nead the thread handle. > (I should say that I don't recall being the one to put the > PCAP stuff in a thread. I have a horror of threads > anyway....) No. I don't understand threads, but I managed to figure out just enough to get them to start in different threads. Obviously, I couldn't then figure out how to make the stop again - you fixed that bit, and therefore claim ownership of that functionality ;-) It may be far less broken than when you first touched it, but you were the last one to touch it... Paul From chris@madingley.org Fri Aug 29 17:33:12 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19smBU-00035N-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 17:33:12 +0100 Received: from aquila.esc.cam.ac.uk (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7TGri49006563; Fri, 29 Aug 2003 17:53:44 +0100 Received: (from chris@localhost) by aquila.esc.cam.ac.uk (8.12.5/8.12.5) id h7TGXBDv024199; Fri, 29 Aug 2003 17:33:11 +0100 Date: Fri, 29 Aug 2003 17:33:11 +0100 From: Chris Lightfoot To: Paul Warren Cc: Michael , iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829163311.GA24174@aquila.esc.cam.ac.uk> References: <000501c36da6$9c15d0e0$6400a8c0@athena> <20030829165153.C10290@sphinx.mythic-beasts.com> <20030829155411.GA20794@aquila.esc.cam.ac.uk> <20030829170728.F10290@sphinx.mythic-beasts.com> <20030829161302.GB22440@aquila.esc.cam.ac.uk> <20030829172645.G10290@sphinx.mythic-beasts.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030829172645.G10290@sphinx.mythic-beasts.com> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-33.4 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 05:26:45PM +0100, Paul Warren wrote: > On Fri, Aug 29, 2003 at 05:13:02PM +0100, Chris Lightfoot wrote: > > Try this patch: (not absolutely certain about the second > > parameter to pcap_dispatch; try 1 if -1 doesn't work) > > > > > > diff -u -r1.44 iftop.c > > --- iftop.c 2003/05/20 21:14:37 1.44 > > +++ iftop.c 2003/08/29 16:10:06 > > @@ -528,7 +528,9 @@ > > /* packet_loop: > > * Worker function for packet capture thread. */ > > void packet_loop(void* ptr) { > > - pcap_loop(pd,-1,(pcap_handler)packet_handler,NULL); > > + /* Make sure that this thread is cancellable. */ > > + while (pcap_dispatch(p, -1, (pcap_handler)packet_handler, NULL) != -1) > > + pcap_testcancel(); > > } > > ITYM pthread_testcancel, yes > and that'll nead the thread handle. no, in fact. > > (I should say that I don't recall being the one to put the > > PCAP stuff in a thread. I have a horror of threads > > anyway....) > > No. I don't understand threads, but I managed to figure out just enough > to get them to start in different threads. Obviously, I couldn't then > figure out how to make the stop again - you fixed that bit, and > therefore claim ownership of that functionality ;-) It may be far less > broken than when you first touched it, but you were the last one to > touch it... gah. ok, fair enough. -- The University of California Department of Statistics... where mean is normal, and deviation standard From admin@ntworks.org Fri Aug 29 17:58:27 2003 Received: from ip68-107-178-236.lu.dl.cox.net ([68.107.178.236] helo=mail.ntworks.org) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19smZu-0003zA-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 17:58:26 +0100 Received: by mail.ntworks.org (Postfix, from userid 100) id DD76FA6992; Fri, 29 Aug 2003 11:58:24 -0500 (CDT) Received: from athena (unknown [192.168.0.100]) by mail.ntworks.org (Postfix) with ESMTP id 74C92A6990 for ; Fri, 29 Aug 2003 11:58:23 -0500 (CDT) From: "Michael" To: Subject: RE: [Iftop-users] iftop on openbsd Date: Fri, 29 Aug 2003 11:55:52 -0700 Message-ID: <000301c36e5f$2e9b1610$6400a8c0@athena> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: Importance: Normal X-Spam-Status: No, hits=-13.0 required=5.0 tests=EMAIL_ATTRIBUTION,ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: As a matter of fact it seems none of the keyboard input is being = recognized by iftop... I reinstalled my server to openbsd 3.3-stable, and = installed iftop, and when running it from ssh session or from the console, it = never accepts keyboard input, even a kill command ? I will try the patch Oh and by the way yes openbsd does run under vmware... in fact the = openbsd system I am testing iftop on is running under vmware GSX server on a = gentoo linux host. -----Original Message----- From: Paul Warren [mailto:pdw@sphinx.mythic-beasts.com] On Behalf Of = Paul Warren Sent: Friday, August 29, 2003 8:52 AM To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd On Thu, Aug 28, 2003 at 01:54:38PM -0700, Michael wrote: > I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday > from the current /snapshot/i386/ openbsd directory) >=20 > It seems to work except once loaded I cant stop it with "q" like I = can in > linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have > to open a new bash shell and kill -9 its pid >=20 > Anyone use iftop on openbsd with no probs? I'm not ignoring this, I just don't know the answer :-( After you press "q" does it keep on running to the extent that you can still press keys and have them do stuff? My guess is that it's a difference in the handling of threads (is that vague enough?), and the stuff that makes is quit is stuff that Chris wrote Paul From admin@ntworks.org Fri Aug 29 18:10:08 2003 Received: from ip68-107-178-236.lu.dl.cox.net ([68.107.178.236] helo=mail.ntworks.org) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19smlD-0004KH-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 18:10:07 +0100 Received: by mail.ntworks.org (Postfix, from userid 100) id DA277A6992; Fri, 29 Aug 2003 12:10:05 -0500 (CDT) Received: from athena (unknown [192.168.0.100]) by mail.ntworks.org (Postfix) with ESMTP id C5F62A6990 for ; Fri, 29 Aug 2003 12:10:01 -0500 (CDT) From: "Michael" To: Subject: RE: [Iftop-users] iftop on openbsd Date: Fri, 29 Aug 2003 12:07:30 -0700 Message-ID: <000401c36e60$cee5d370$6400a8c0@athena> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: Importance: Normal X-Spam-Status: No, hits=-13.0 required=5.0 tests=EMAIL_ATTRIBUTION,ORIGINAL_MESSAGE,QUOTED_EMAIL_TEXT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: Ok the make for the patched iftop.c failed : source=3D'iftop.c' object=3D'iftop.o' libtool=3Dno = depfile=3D'.deps/iftop.Po' tmpdepfile=3D'.deps/iftop.TPo' depmode=3Dgcc /bin/sh ./config/depcomp = gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c `test -f 'iftop.c' || echo './'`iftop.c iftop.c: In function `packet_loop': iftop.c:511: `p' undeclared (first use in this function) iftop.c:511: (Each undeclared identifier is reported only once iftop.c:511: for each function it appears in.) *** Error code 1 Stop in /root/iftop-0.13. *** Error code 1 Stop in /root/iftop-0.13 (line 352 of Makefile). *** Error code 1 forgive me I'm not much of a coder=20 any ideas ? oh and I need to edit the last email, instead of saying "keyboard input = is being recognized" I meant IS NOT being recognized. =3D( sorry -----Original Message----- From: Michael [mailto:admin@ntworks.org]=20 Sent: Friday, August 29, 2003 11:56 AM To: 'iftop-users@lists.beasts.org' Subject: RE: [Iftop-users] iftop on openbsd As a matter of fact it seems none of the keyboard input is being = recognized by iftop... I reinstalled my server to openbsd 3.3-stable, and = installed iftop, and when running it from ssh session or from the console, it = never accepts keyboard input, even a kill command ? I will try the patch Oh and by the way yes openbsd does run under vmware... in fact the = openbsd system I am testing iftop on is running under vmware GSX server on a = gentoo linux host. -----Original Message----- From: Paul Warren [mailto:pdw@sphinx.mythic-beasts.com] On Behalf Of = Paul Warren Sent: Friday, August 29, 2003 8:52 AM To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd On Thu, Aug 28, 2003 at 01:54:38PM -0700, Michael wrote: > I successfully compiled the latest iftop on openbsd 3.4 (installed yesterday > from the current /snapshot/i386/ openbsd directory) >=20 > It seems to work except once loaded I cant stop it with "q" like I = can in > linux, and I cant ctrl-C or ctrl-X it or anything it keeps running, I have > to open a new bash shell and kill -9 its pid >=20 > Anyone use iftop on openbsd with no probs? I'm not ignoring this, I just don't know the answer :-( After you press "q" does it keep on running to the extent that you can still press keys and have them do stuff? My guess is that it's a difference in the handling of threads (is that vague enough?), and the stuff that makes is quit is stuff that Chris wrote Paul From chris@ex-parrot.com Fri Aug 29 18:13:21 2003 Received: from daleth.esc.cam.ac.uk ([131.111.64.59] helo=aleph.esc.cam.ac.uk) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19smoL-0004Si-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003 18:13:21 +0100 Received: from caesious.cold.local (janus.esc.cam.ac.uk [131.111.64.94]) by aleph.esc.cam.ac.uk (8.12.5/8.12.5) with ESMTP id h7THXq49006667; Fri, 29 Aug 2003 18:33:53 +0100 Received: from chris by caesious.cold.local with local (Exim 3.03 #4) id 19smoJ-0002qP-00; Fri, 29 Aug 2003 18:13:19 +0100 Date: Fri, 29 Aug 2003 18:13:19 +0100 From: Chris Lightfoot To: Michael Cc: iftop-users@lists.beasts.org Subject: Re: [Iftop-users] iftop on openbsd Message-ID: <20030829171319.GD4474@caesious.cold.local> References: <000401c36e60$cee5d370$6400a8c0@athena> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000401c36e60$cee5d370$6400a8c0@athena> User-Agent: Mutt/1.3.24i X-Mail-Author: me X-Face: "kUA_=&I|(by86eXgYc|U}5`O%M(P#,)y`g7N}Boz4b^JTFYHPz:s%idl@t$\Vv$3OL6:>GEGwFHrV$/bfnL=6uO/ggqZfet:&D3 Q=9c X-Face-Plug: http://www.mythic-beasts.com/tools-toys/xface/ X-Spam-Status: No, hits=-35.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PATCH_UNIFIED_DIFF,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.53-sa_mythic X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-sa_mythic (1.174.2.15-2003-03-30-exp) Sender: iftop-users-admin@lists.beasts.org Errors-To: iftop-users-admin@lists.beasts.org X-BeenThere: iftop-users@lists.beasts.org X-Mailman-Version: 2.0.12 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Discussion of iftop network monitoring utility List-Unsubscribe: , List-Archive: On Fri, Aug 29, 2003 at 12:07:30PM -0700, Michael wrote: > > Ok the make for the patched iftop.c failed : sorry, first patch was broken. try this on the unpatched iftop.c: diff -u -r1.44 iftop.c --- iftop.c 2003/05/20 21:14:37 1.44 +++ iftop.c 2003/08/29 17:12:25 @@ -528,7 +528,9 @@ /* packet_loop: * Worker function for packet capture thread. */ void packet_loop(void* ptr) { - pcap_loop(pd,-1,(pcap_handler)packet_handler,NULL); + /* Make sure that this thread is cancellable. */ + while (pcap_dispatch(pd, -1, (pcap_handler)packet_handler, NULL) != -1) + pthread_testcancel(); } -- ``Like any Englishman armed with a cricket bat, he was doomed to fail.'' (Guy Ladenburg, prosecuting, comments on Paul Kelleher's first attempt to behead a statue of Margaret Thatcher) From admin@ntworks.org Fri Aug 29 18:26:40 2003 Received: from ip68-107-178-236.lu.dl.cox.net ([68.107.178.236] helo=mail.ntworks.org) by sphinx.mythic-beasts.com with esmtp (Exim 3.33 #2) id 19sn1D-0004zn-00 for iftop-users@lists.beasts.org; Fri, 29 Aug 2003