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

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

View File

@@ -1,6 +1,16 @@
Change log for iftop
$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
* 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_mutex_unlock(&mtx);
while (1)
pause();
pthread_testcancel();
}
/* 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[] = {
"lo:",
"lo",
"stf", /* pseudo-device 6to4 tunnel interface */
"gif", /* psuedo-device generic tunnel interface */
"dummy",
"vmnet",
NULL /* last entry must be NULL */
@@ -144,7 +146,7 @@ static void set_net_filter(char* arg) {
options.netfiltermask.s_addr = htonl(0xffffffffl);
}
else {
uint32_t mm = 0xffffffffl;
u_int32_t mm = 0xffffffffl;
mm >>= n;
options.netfiltermask.s_addr = htonl(~mm);
}