Mac OS X fixes.

This commit is contained in:
pdw
2003-08-27 18:29:27 +00:00
parent fc967957da
commit ebb28db1b6
4 changed files with 16 additions and 3 deletions

View File

@@ -8,3 +8,4 @@ Chris Lightfoot, chris@ex-parrot.com
Mangled for Solaris by Mangled for Solaris by
Jonathan Abbey, jonabbey@ganymeta.org Jonathan Abbey, jonabbey@ganymeta.org

View File

@@ -1,6 +1,16 @@
Change log for iftop Change log for iftop
$Id$ $Id$
Attributions apply to all preceding items up to the next blank line.
Unattributed items are by Paul Warren and Chris Lightfoot.
0.14
* Configure/compilation fixes for Mac OS X
* MacOS interfaces to avoid by default
Siri Dhyan Singh <sirid@positivemind.com>
0.13 11/06/03 0.13 11/06/03
* Fixed configure.in to properly specify libraries without the leading -l * Fixed configure.in to properly specify libraries without the leading -l

View File

@@ -24,7 +24,7 @@ void *worker_thread(void *v) {
pthread_cond_signal(&cond); pthread_cond_signal(&cond);
pthread_mutex_unlock(&mtx); pthread_mutex_unlock(&mtx);
while (1) while (1)
pause(); pthread_testcancel();
} }
/* Start a thread, and have it set a variable to some other value, then signal /* Start a thread, and have it set a variable to some other value, then signal

View File

@@ -40,6 +40,8 @@ char optstr[] = "+i:f:nN:hpbBP";
static char *bad_interface_names[] = { static char *bad_interface_names[] = {
"lo:", "lo:",
"lo", "lo",
"stf", /* pseudo-device 6to4 tunnel interface */
"gif", /* psuedo-device generic tunnel interface */
"dummy", "dummy",
"vmnet", "vmnet",
NULL /* last entry must be NULL */ NULL /* last entry must be NULL */
@@ -144,7 +146,7 @@ static void set_net_filter(char* arg) {
options.netfiltermask.s_addr = htonl(0xffffffffl); options.netfiltermask.s_addr = htonl(0xffffffffl);
} }
else { else {
uint32_t mm = 0xffffffffl; u_int32_t mm = 0xffffffffl;
mm >>= n; mm >>= n;
options.netfiltermask.s_addr = htonl(~mm); options.netfiltermask.s_addr = htonl(~mm);
} }