racount patch against argus-clients-3.0.0.rc.7

Robin Gruyters r.gruyters at yirdis.nl
Fri Jun 16 06:36:50 EDT 2006


Hi ya,

I have tried to fix the racount problem for FreeBSD, and it looks like  
it is working ;)

[...]
# racount -r /data2/argus/05/*/*
racount   records     total_pkts     src_pkts       dst_pkts        
total_bytes        src_bytes          dst_bytes
     sum   6284483     99169639       45732337       53437302        
61536489852        9567159317         51969330535
[...]

[patch]
--- racount.c.orig      Thu Jun  8 20:20:12 2006
+++ racount.c   Fri Jun 16 12:19:07 2006
@@ -174,7 +174,7 @@
           } else {

              printf ("racount   records     total_pkts     src_pkts    
     dst_pkts       total_bytes        src_bytes          dst_bytes\n");
-#if defined(__APPLE_CC__) || defined(__APPLE__)
+#if defined(__APPLE_CC__) || defined(__APPLE__) || defined(__FreeBSD__)
              printf ("    sum   %-11lld %-14lld %-14lld %-14lld  
%-18lld %-18lld %-18lld\n",
  #else
              printf ("    sum   %-11Ld %-14Ld %-14Ld %-14Ld %-18Ld  
%-18Ld %-18Ld\n",
[end patch]

Regards,

Robin Gruyters
Network and Security Engineer
Yirdis B.V.
I: http://yirdis.com
P: +31 (0)36 5300394
F: +31 (0)36 5489119



More information about the argus mailing list