zeek/testing/btest/core/udp-content-ports.zeek
Jon Siwek c1b3c9593b Add "udp_content_ports" option
Any port in that set found as either source or destination port
of a UDP packet will cause the "udp_contents" event to be raised.
2020-04-07 13:02:29 -07:00

9 lines
263 B
Text

# @TEST-EXEC: zeek -b -r $TRACES/rpc-portmap-sadmind.pcap %INPUT >out
# @TEST-EXEC: btest-diff out
redef udp_content_ports += { 54790/udp };
event udp_contents(c: connection, is_orig: bool, contents: string)
{
print "Contents:", c$id, is_orig, |contents|;
}