zeek/testing/btest/core/linuxsll2.zeek
Simeon Miteff 74cc5dcd6b Skip test based on preprocessor flag set by cmake
Relies on change in d42dcb2d55029975a6a6b2e6378fc49a268631ec
2022-08-24 12:47:32 +10:00

18 lines
673 B
Text

# @TEST-REQUIRES: ! grep -q "#define DONT_HAVE_LIBPCAP_DLT_LINUX_SLL2" $BUILD/zeek-config.h
# @TEST-EXEC: zeek -b -C -r $TRACES/linux_dlt_sll2.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 icmp_echo_request(c: connection , info: icmp_info , id: count , seq: count , payload: string )
{
print c$id, info, id, seq;
}
event icmp_echo_reply(c: connection , info: icmp_info , id: count , seq: count , payload: string )
{
print c$id, info, id, seq;
}