[Iftop-users] mac os x 10.2.6 compile?

Matthew M. Austin matthew at positivemind.com
Mon, 25 Aug 2003 17:06:33 -0700


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