mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add btest for DNS WKS RR.
This commit is contained in:
parent
01660553d6
commit
a2a8870931
4 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
||||
#separator \x09
|
||||
#set_separator ,
|
||||
#empty_field (empty)
|
||||
#unset_field -
|
||||
#path dns
|
||||
#open XXXX-XX-XX-XX-XX-XX
|
||||
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p proto trans_id rtt query qclass qclass_name qtype qtype_name rcode rcode_name AA TC RD RA Z answers TTLs rejected auth addl
|
||||
#types time string addr port addr port enum count interval string count string count string count string bool bool bool bool count vector[string] vector[interval] bool set[string] set[string]
|
||||
XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 10.87.3.18 60059 10.87.1.10 53 udp 63119 - zeek.example.net 1 C_INTERNET 11 WKS 0 NOERROR F F T F 2 - - F - -
|
||||
#close XXXX-XX-XX-XX-XX-XX
|
|
@ -0,0 +1 @@
|
|||
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
BIN
testing/btest/Traces/dns/dns-wks.pcap
Normal file
BIN
testing/btest/Traces/dns/dns-wks.pcap
Normal file
Binary file not shown.
10
testing/btest/scripts/base/protocols/dns/wks.pcap
Normal file
10
testing/btest/scripts/base/protocols/dns/wks.pcap
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