mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

This also changes the existing DU btest from checking to ensure a weird was emitted to checking the output from the event.
12 lines
407 B
Text
12 lines
407 B
Text
# @TEST-DOC: Tests that a DNS dynamic update packet is processed.
|
|
# @TEST-EXEC: zeek -b -C -r $TRACES/dns/dynamic-update.pcap %INPUT >out 2>&1
|
|
# @TEST-EXEC: btest-diff out
|
|
# @TEST-EXEC: ! test -f weird.log
|
|
|
|
@load base/frameworks/notice/weird
|
|
@load base/protocols/dns
|
|
|
|
event dns_dynamic_update(c: connection, msg: dns_msg, zname: string, zclass: count)
|
|
{
|
|
print msg, zname, zclass, DNS::classes[zclass];
|
|
}
|