Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [203.192.206.165] From: "Kiran Prakash" To: Subject: Porting iftop 0.4 Date: Mon, 29 Jul 2002 16:22:19 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: X-OriginalArrivalTime: 29 Jul 2002 10:52:24.0187 (UTC) FILETIME=[057B2CB0:01C236EE] Im trying to port iftop 0.4 to cygwin using winpcap for the capture driver, and the headers which came with winpcap. "iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question "why is our ADSL link so slow?"." link: http://www.ex-parrot.com/~pdw/iftop/ Im using 98SE on FAT32 cygwin 1.3.12-2 gcc 3.1.1-4 Ive come across a bunch of issues. For some reason, even though the ioctl SIOCGIFHWADDR is defined, it doesnt work. The reentrant function gethostbyaddr_r isnt even there. This can be kludged by using gethostbyaddr instead. Can stdint.h be symlinked to sys/types.h to make porting easier ? Also, a number of types (uint8_t, etc) arent defined anyway ... Also a couple of structs needed to be defined. The interface lib for winpcap (libpcap) has a few symbols in common with cygwin (getopt, optind, etc). Is it ok to just remove these from libpcap ? Done all this, and iftop seems to be working, though it cant find the local MAC address. This is my first port, so feedback is appreciated. Thanks, Kiran Prakash -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/