mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

This controls whether ports given by "udp_content_delivery_ports_orig" and "udp_content_delivery_ports_orig" are in terms of the UDP packet's destination port or by the Connection's "responder" port (the former is the unchanged default behavior).
12 lines
430 B
Text
12 lines
430 B
Text
# @TEST-EXEC: zeek -b -r $TRACES/rpc-portmap-sadmind.pcap %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
redef udp_content_delivery_ports_use_resp = T;
|
|
redef udp_content_delivery_ports_orig += {[54790/udp] = T};
|
|
redef udp_content_delivery_ports_resp += {[54790/udp] = T};
|
|
redef likely_server_ports += {54790/udp};
|
|
|
|
event udp_contents(c: connection, is_orig: bool, contents: string)
|
|
{
|
|
print "Contents:", c$id, is_orig, |contents|;
|
|
}
|