mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

* alphabet * another * associated * avoiding * base * because * constructors * defining * deterministic * directly * endlessly * entity * function * indefinitely * initial * interpreter * into * modifying * negotiate * nonexistent * observations * occasional * omission * orphaned * overridden * passing * primitive * produces * reassembly * repository * restore * shouldn't * something * statement * the * therefore * transferred * uninitialized * unsuccessful Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
23 lines
613 B
Text
23 lines
613 B
Text
#
|
|
# In "normal" test mode, connection uids should be deterministic.
|
|
#
|
|
# @TEST-EXEC: zeek -b -D -C -r $TRACES/wikipedia.trace %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
#
|
|
# Without a seed, they should differ each time:
|
|
#
|
|
# @TEST-EXEC: unset ZEEK_SEED_FILE && unset BRO_SEED_FILE && zeek -b -C -r $TRACES/wikipedia.trace %INPUT >output2
|
|
# @TEST-EXEC: cat output output2 | sort | uniq -c | wc -l | sed 's/ //g' >counts
|
|
# @TEST-EXEC: btest-diff counts
|
|
|
|
@load base/protocols/http
|
|
|
|
event new_connection(c: connection)
|
|
{
|
|
print c$id, c$uid;
|
|
}
|
|
|
|
event connection_established(c: connection)
|
|
{
|
|
print c$id, c$uid;
|
|
}
|