Hi there,
 
        I would like to announce that Flow-tools 0.68 is currently running on 
our HP-UX 11.11 PA-RISC 2.0 server! It took us 2 days but I guess the result 
pays the work. Here's a short how-to of the process:
 
 
1. Get the necessary libraries and tools.
GCC 4.0.2, gettext 0.14.5 and libiconv 1.10 and gmake 3.8 for building.
Zlib 1.2.3 and tcp_wrappers 7.6 for Flow-tools dependencies.
Download the depot files from http://hpux.connect.org.uk and install with 
swinstall.
 
 
2. Configure the HP-UX environment.
Put /usr/local/bin in the PATH (export PATH=$PATH:/usr/local/bin)
Put /usr/local/lib in the LPATH (export LPATH=/usr/lib:/usr/local/lib)
For permanent settings, change /etc/PATH and /etc/LPATH.
 
 
3. Patch Flow-tools 0.68.
Apply the patch from 
http://www.mail-archive.com/[email protected]/msg00646.html 
<http://mailman.splintered.net/pipermail/flow-tools/2005-May/002753.html> 
Apply the patch from 
http://www.mail-archive.com/[email protected]/msg00912.html
Apply the patch from 
http://www.mail-archive.com/[email protected]/msg00915.html
 
The later is a bit tricky: what you need to do is to disable IP multicast, 
putting Flow-tools running on unicast only. I simply inserted #undef's for 
IP_ADD_MEMBERSHIP and IP_ADD_SOURCE_MEMBERSHIP in the beggining of every source 
file that uses them (src/flow-capture.c, src/flow-receive.c, src/flow-fanout.c 
and src/flow-send.c). There must be a clever way to do this!
 
Also, you'll need to fix a bug in flow-capture.c (Flow-tools developers check 
this!). Line 592 has a syntax error:
 
fterr_err(1, "bind(%s)", inet_ntoa(ftnet.loc_addr.sin_addr)));
 
... as you can see, there's an extra ")" in the end!
 
 
4. Compile and install Flow-tools.
./configure
gmake
gmake install
 
 
5. Final thoughts.
I compared the outputs of two flow-receive's running on Linux and HP-UX, 
capturing from the same Cisco router: they were exacly the same. So, I trust in 
the HP-UX flow-receive build. Next steps: test flow-capture and the other tools.
 
Thanks for the support guys!
 
Arménio Pinto
_______________________________________________
Flow-tools mailing list
[EMAIL PROTECTED]
http://mailman.splintered.net/mailman/listinfo/flow-tools

Reply via email to