delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/07/29/06:52:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <kiran__prakash AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Porting iftop 0.4
Date: Mon, 29 Jul 2002 16:22:19 +0530
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
Message-ID: <OE73P70KwXMJ8DQ3Tm3000068da@hotmail.com>
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019