This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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?"."

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]