mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
ARP: remove unnecessary variables and add testcase
BIT-1573 #close
This commit is contained in:
parent
e9a87566ef
commit
3a70289e91
5 changed files with 15 additions and 7 deletions
13
testing/btest/scripts/base/protocols/arp/basic.test
Normal file
13
testing/btest/scripts/base/protocols/arp/basic.test
Normal file
|
@ -0,0 +1,13 @@
|
|||
# @TEST-EXEC: bro -r $TRACES/arp-who-has.pcap %INPUT
|
||||
# @TEST-EXEC: btest-diff .stdout
|
||||
|
||||
event arp_request(mac_src: string, mac_dst: string, SPA: addr, SHA: string, TPA: addr, THA: string)
|
||||
{
|
||||
print mac_src, mac_dst, SPA, SHA, TPA, THA;
|
||||
}
|
||||
|
||||
event arp_reply(mac_src: string, mac_dst: string, SPA: addr, SHA: string, TPA: addr, THA: string)
|
||||
{
|
||||
print mac_src, mac_dst, SPA, SHA, TPA, THA;
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue