Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

19 lines
357 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module TFTP;
public type Packet = unit {
opcode: uint16;
switch ( self.opcode ) {
1 -> rrq: ReadRequest;
};
on %done { print self; }
};
# %hide-begin%
type ReadRequest = unit {
filename: bytes &until=b"\x00";
mode: bytes &until=b"\x00";
};
# %hide-end%