1 Provide the directory where snort will initially look for DAQ modules.
3 This patch has not been sent upstream, because the Solaris integration
4 of libdaq is different from the way that Linux systems do this.
6 On Linux systems, DAQ installs two static libraries:
8 /usr/lib/libdaq_static.a
9 /usr/lib/libdaq_static_modules.a
11 When snort is being configured, you see:
14 checking for daq_load_modules in -ldaq_static... yes
17 and at link time we see "-ldaq_static ... -ldaq_static_modules ...".
19 This means that when you start snort running, it knows where to
20 look for a set of DAQ modules that it loads. This is done with
21 with a call to the DAQ routine daq_load_modules().
23 On Solaris, we do not provide those two static libraries (or their 64-bit
24 equivalents). Therefore, by default, a call to daq_load_modules() using
25 the dynamic libraries doesn't know where to look for any DAQ modules.
27 Now you can override this by starting snort with:
29 $ sudo /usr/bin/snort --daq-dir /usr/lib/64/daq
33 $ sudo /usr/bin/snort -c /etc/snort.conf
35 or something similar, but that doesn't allow:
39 to work, right out of the box, which is what snort users would expect.
41 To resolve this, at snort initialization time on Solaris, the code has
42 been adjusted to specify a single default DAQ module directory:
46 --- snort-2.9.9.0/src/snort.c.~1~ 2016-11-14 14:48:57.000000000 +0300
47 +++ snort-2.9.9.0/src/snort.c 2017-01-31 17:13:46.276333406 +0300
50 SnortConfig *sc = (SnortConfig *)SnortAlloc(sizeof(SnortConfig));
52 + /* Define where to look for DAQ modules. */
53 + ConfigDaqDir(sc, "/usr/lib/daq");