zeek/testing/btest/scripts/base/protocols/mqtt/mqtt-payload-cap.test
Jon Siwek 6bc947a48e GH-474: add MQTT::max_payload_size option
This caps size of payload strings within mqtt_publish events and
mqtt_publish.log files.  A new "payload_len" field in the log file
shows the real payload size in cases where it may have been truncated.
2019-08-02 14:28:55 -07:00

6 lines
162 B
Text

# @TEST-EXEC: zeek -b -r $TRACES/mqtt.pcap %INPUT >output
# @TEST-EXEC: btest-diff mqtt_publish.log
redef MQTT::max_payload_size = 8;
@load base/protocols/mqtt