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

This is based on commit 2731def9159247e6da8a3191783c89683363689c from the zeek-docs repo.
16 lines
716 B
Text
16 lines
716 B
Text
# Copyright (c) 2021 by the Zeek Project. See LICENSE for details.
|
|
#
|
|
# Note: When line numbers change in this file, update the documentation that pulls it in.
|
|
|
|
protocol analyzer spicy::TFTP over UDP:
|
|
parse with TFTP::Packet,
|
|
port 69/udp;
|
|
|
|
import TFTP;
|
|
|
|
on TFTP::Request if ( is_read ) -> event tftp::read_request($conn, $is_orig, self.filename, self.mode);
|
|
on TFTP::Request if ( ! is_read ) -> event tftp::write_request($conn, $is_orig, self.filename, self.mode);
|
|
|
|
on TFTP::Data -> event tftp::data($conn, $is_orig, self.num, self.data);
|
|
on TFTP::Acknowledgement -> event tftp::ack($conn, $is_orig, self.num);
|
|
on TFTP::Error -> event tftp::error($conn, $is_orig, self.code, self.msg);
|