Commit ebb28db1 authored by pdw's avatar pdw

Mac OS X fixes.

parent fc967957
......@@ -7,4 +7,5 @@ Chris Lightfoot, chris@ex-parrot.com
Mangled for Solaris by
Jonathan Abbey, jonabbey@ganymeta.org
\ No newline at end of file
Jonathan Abbey, jonabbey@ganymeta.org
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
......
......@@ -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
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment