mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Merge remote-tracking branch 'origin/topic/vlad/analyzer_coverage'
* origin/topic/vlad/analyzer_coverage: Add btests for DNS WKS and BINDS Add btest for DNS WKS RR. Add btest for DNS NSEC3PARAM RR.
This commit is contained in:
commit
0746ef7ecc
14 changed files with 94 additions and 1 deletions
10
testing/btest/scripts/base/protocols/dns/binds.zeek
Normal file
10
testing/btest/scripts/base/protocols/dns/binds.zeek
Normal file
|
@ -0,0 +1,10 @@
|
|||
# @TEST-EXEC: zeek -b -C -r $TRACES/dns/dns-binds.pcap %INPUT > output
|
||||
# @TEST-EXEC: btest-diff dns.log
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@load policy/protocols/dns/auth-addl
|
||||
|
||||
event dns_BINDS(c: connection, msg: dns_msg, ans: dns_answer, binds: dns_binds_rr)
|
||||
{
|
||||
print "BINDS", binds;
|
||||
}
|
11
testing/btest/scripts/base/protocols/dns/nsec3param.zeek
Normal file
11
testing/btest/scripts/base/protocols/dns/nsec3param.zeek
Normal file
|
@ -0,0 +1,11 @@
|
|||
# @TEST-EXEC: zeek -b -C -r $TRACES/dnssec/nsec3param.pcap %INPUT > output
|
||||
# @TEST-EXEC: btest-diff dns.log
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@load policy/protocols/dns/auth-addl
|
||||
|
||||
event dns_NSEC3PARAM(c: connection, msg: dns_msg, ans: dns_answer, nsec3param: dns_nsec3param_rr)
|
||||
{
|
||||
print "NSEC3PARAM", nsec3param,
|
||||
bytestring_to_hexstr(nsec3param$nsec_salt);
|
||||
}
|
10
testing/btest/scripts/base/protocols/dns/wks.zeek
Normal file
10
testing/btest/scripts/base/protocols/dns/wks.zeek
Normal file
|
@ -0,0 +1,10 @@
|
|||
# @TEST-EXEC: zeek -b -C -r $TRACES/dns/dns-wks.pcap %INPUT > output
|
||||
# @TEST-EXEC: btest-diff dns.log
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@load policy/protocols/dns/auth-addl
|
||||
|
||||
event dns_WKS_reply(c: connection, msg: dns_msg, ans: dns_answer)
|
||||
{
|
||||
print "WKS", dns_msg, dns_answer;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue