[Iftop-users] iftop 0.16 on HP-UX

John Caywood biliary2000 at yahoo.com
Wed, 28 Apr 2004 07:51:36 -0700 (PDT)


Had to make these changes to compile under HP-UX 11.00

1. in edline.c
   KEY_END is undefined anywhere
     comment out this case

2. in options.c
   u_int32_t is uint32_t in HP-UX (sys/types.h)
   struct if_nameindex is struct ifnet in HP-UX
(net/if.h)

3. in resolver.c
    wait() requires an argument of type int *
    changed wait() to wait( (int *) (pid_t) -1)

4. in ui.c
    before #include <curses.h>
      add #define _XOPEN_SOURCE_EXTENDED

5. in addrs_dlpi.c
    add #include <netdb.h>

Got through the compile phase with these changes, but
at load time, 'ld' choked when trying to find
if_freenameindex() and if_nameindex()

Can anyone suggest where I might find these functions?
Or is the port hopeless because different data
structures are being used for kernel if structures?  

=====
John Caywood
   biliary two thousand at yahoo dot calm


	
		
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  
http://hotjobs.sweepstakes.yahoo.com/careermakeover