zeek/testing/btest/scripts/base/frameworks/input
Christian Kreibich 3f02c0a67c Source file path control for Input and Intel frameworks
This introduces the following redefinable string constants, empty by
default:

- InputAscii::path_prefix
- InputBinary::path_prefix
- Intel::path_prefix

When using ASCII or binary reades in the Input/Intel Framework with an
input stream source that does not have an absolute path, these
constants cause Zeek to prefix the resulting paths accordingly. For
example, in the following the location on disk from which Zeek loads
the input becomes "/path/to/input/whitelist.data":

redef InputAscii::path_prefix = "/path/to/input";

event bro_init()
        {
        Input::add_table([$source="whitelist.data", ...]);
	}

These path prefixes can be absolute or relative. When an input stream
source already uses an absolute path, this path is preserved and the
new variables have no effect (i.e., we do not affect configurations
already using absolute paths).

Since the Intel framework builds upon the Input framework, the first
two paths also affect Intel file locations. If this is undesirable,
the Intel::path_prefix variable allows specifying a separate path:
when its value is absolute, the resulting source seen by the Input
framework is absolute, therefore no further changes to the paths
happen.
2019-03-15 16:43:36 -07:00
..
config Be more liberal with whitespaces for ip-addresses, subnets, etc. 2019-02-19 15:06:06 -08:00
path-prefix Source file path control for Input and Intel frameworks 2019-03-15 16:43:36 -07:00
raw Improve an input framework unit test 2018-07-17 17:51:52 -05:00
sqlite Baseline updates for the addition of local_resp. 2015-02-23 16:25:11 -08:00
basic.bro Make parsing of booleans a little bit more lenient. 2018-08-10 10:03:22 -07:00
bignumber.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
binary.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
default.bro Merge branch 'topic/jgras/input-default' of https://github.com/J-Gras/bro 2016-06-15 17:32:50 -07:00
empty-values-hashing.bro Improve input framework re-read logic 2018-08-24 12:46:31 -05:00
emptyvals.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
errors.bro Input: Further small changes to error handling 2016-07-25 15:35:46 -07:00
event.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
invalid-lines.bro Ascii reader error changes - fix small bugs 2017-03-03 12:42:44 -08:00
invalidnumbers.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
invalidset.bro Fix segmentation fault when parsing sets containing invalid elements. 2018-01-29 14:22:44 -08:00
invalidtext.bro Ascii reader error changes - fix small bugs 2017-03-03 12:42:44 -08:00
missing-enum.bro Change the way the input framework deals with values it cannot convert 2015-03-19 14:58:38 -07:00
missing-file-initially.bro BIT-1941: improve unit test stability 2018-07-03 15:00:52 -05:00
missing-file.bro Ascii reader error changes - fix small bugs 2017-03-03 12:42:44 -08:00
onecolumn-norecord.bro Several fixes for input manager error handling. 2013-12-05 15:53:12 -08:00
onecolumn-record.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
optional.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
port-embedded.bro Ascii formatter: do not complain about port text. 2018-08-10 11:29:35 -07:00
port.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
predicate-stream.bro Several fixes for input manager error handling. 2013-12-05 15:53:12 -08:00
predicate.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
predicatemodify.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
predicatemodifyandreread.bro Improve input framework re-read logic 2018-08-24 12:46:31 -05:00
predicaterefusesecondsamerecord.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
repeat.bro Several fixes for input manager error handling. 2013-12-05 15:53:12 -08:00
reread.bro Improve input framework re-read logic 2018-08-24 12:46:31 -05:00
set.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
setseparator.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
setspecialcases.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
stream.bro BIT-1941: improve unit test stability 2018-07-03 15:00:52 -05:00
subrecord-event.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
subrecord.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
tableevent.bro Several fixes for input manager error handling. 2013-12-05 15:53:12 -08:00
twotables.bro Improve input framework re-read logic 2018-08-24 12:46:31 -05:00
unsupported_types.bro Input framework unit test adjustments. 2013-08-14 14:10:04 -05:00
windows.bro Ascii Input: Accept dos/windows newlines. 2016-06-01 11:21:44 -07:00