! TFTP packet formats and codes

%recordformat tftp fm(%short op,
                      (((%short block %or %short error code),
                        (%bytearray data(1 : 512) %c
                         %or %bytearray error text(1 : 256))) %c
                       %or %bytearray text(1 : 256)))

%constinteger tftp rrq  = 1
%constinteger tftp wrq  = 2
%constinteger tftp data = 3
%constinteger tftp ack  = 4
%constinteger tftp err  = 5

%constinteger tftp port = 69

%end %of %file
