hello:
trying to compile barnyard2 in solaris ... again... :)
was able to do it after making the following mod to plugbase.h..
(added a net/if.h before net/route.h)
# /usr/local/bin/diff -rupN plugbase.h plugbase.h.orig
--- plugbase.h 2012-01-26 16:05:45.000000000 -0500
+++ plugbase.h.orig 2011-12-07 14:02:30.000000000 -0500
@@ -47,7 +47,6 @@
#if !defined(__SOLARIS__) && !defined(__CYGWIN32__) && !
defined(__CYGWIN__) && \
!defined( __CYGWIN64__)
-#include <net/if.h>
#include <net/route.h>
#endif
but now I'm getting core dumps when I run it with a unified2 input
file..
turning the debugging on (and compiling with -debug), here's a run
with the output msql enabled...
--== Initialization Complete ==--
______ -*> Barnyard2 <*-
/ ,,_ \ Version 2.1.10-beta2 (Build 266) DEBUG
|o" )~| By Ian Firns (SecurixLive):
http://www.securixlive.com/
+ '''' + (C) Copyright 2008-2011 Ian Firns <
fir...@securixlive.com>
Processing 1 files...
Opened spool file '/var/log/snort/merged.log'
spi_unified2.c:133: Header: Reading at byte position 0
spi_unified2.c:157: Header: Type=104 (60 bytes)
spi_unified2.c:175: Reading record type=104 (60 bytes)
spi_unified2.c:187: Record: Reading at byte position 8
spi_unified2.c:223: No debug available for record type: 104
spooler.c:789: Caching event...
spooler.c:805: Cached event: 1
spi_unified2.c:133: Header: Reading at byte position 68
spi_unified2.c:157: Header: Type=2 (178 bytes)
spi_unified2.c:175: Reading record type=2 (178 bytes)
spi_unified2.c:187: Record: Reading at byte position 76
spi_unified2.c:336: Type: Packet
------------------------------------------
spi_unified2.c:338: sensor_id = 0
spi_unified2.c:340: event_id = 1
spi_unified2.c:342: event_second = 1328041711
spi_unified2.c:344: linktype = 1
spi_unified2.c:346: packet_second = 1328041711
spi_unified2.c:348: packet_microsecond = 435772
spi_unified2.c:350: packet_length = 150
spi_unified2.c:355: packet = 03 ba 0e 7a
decode.c:113: Decoding linktype 1
decode.c:318: Packet!
decode.c:318: caplen: 150 pktlen: 150
decode.c:345: 0:D0:5:96:43:FC -> 0:3:BA:E:7A:94
decode.c:349: type:0x800 len:0x96
decode.c:359: IP datagram size calculated to be 136 bytes
decode.c:2661: Packet!
decode.c:2835: IP Checksum: OK
decode.c:2912: IP header length: 20
decode.c:3036: TCP th_off is 5, passed len is 116
Bus Error(coredump)
any pointers?
If I set the output to tcpdump, it processes the file... (it gives
some warnings about size mismatch though)
Is there a way I can verify that the unified2 file is 'correct'? I
did get some warnings like this:
(snort_decoder) WARNING: IP dgm len > captured len
when I created the unified2 file in snort..
Thanks,
Luis