mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
21 lines
515 B
Text
21 lines
515 B
Text
# @TEST-REQUIRES: have-spicy
|
|
#
|
|
# @TEST-EXEC: spicyz -d -o test.hlto ./udp-test.evt 2>out.stderr
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out.stderr
|
|
#
|
|
# @TEST-DOC: Remove with v7.1: Specifying ports is deprecated.
|
|
|
|
module Test;
|
|
|
|
import zeek;
|
|
|
|
public type Message = unit {
|
|
data: bytes &eod {}
|
|
};
|
|
|
|
# @TEST-START-FILE udp-test.evt
|
|
protocol analyzer spicy::TEST over UDP:
|
|
parse with Test::Message,
|
|
port 11337/udp-11340/udp,
|
|
ports {31337/udp-31340/udp};
|
|
# @TEST-END-FILE
|