This is the mail archive of the
mailing list for the Cygwin project.
Porting iftop 0.4
- From: "Kiran Prakash" <kiran__prakash at hotmail dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 29 Jul 2002 16:22:19 +0530
- Subject: Porting iftop 0.4
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?"."
Im using 98SE on FAT32
Ive come across a bunch of issues.
For some reason, even though the ioctl SIOCGIFHWADDR is defined, it doesnt
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
This is my first port, so feedback is appreciated.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html