zeek/testing/btest/bifs/get_port_transport_proto.zeek
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

14 lines
259 B
Plaintext

#
# @TEST-EXEC: zeek -b %INPUT >out
# @TEST-EXEC: btest-diff out
event zeek_init()
{
local a = 123/tcp;
local b = 123/udp;
local c = 123/icmp;
print get_port_transport_proto(a);
print get_port_transport_proto(b);
print get_port_transport_proto(c);
}