#ifndef __TFTP_H #define __TFTP_H struct tftp_hdr { u_short tftp_opc; u_char tftp_data[]; } __packed; #define TFTP_OPC_RRQ 1 #define TFTP_OPC_WRQ 2 #define TFTP_OPC_DATA 3 #define TFTP_OPC_ACK 4 #define TFTP_OPC_ERROR 5 #define TFTP_OPC_OACK 6 #define TFTP_MODE_ASCII "netascii" #define TFTP_MODE_OCTET "octet" #define TFTP_MODE_MAIL "mail" struct tagErr { u_short err_code; char *err_msg; }; extern const struct tagErr errs[9]; #endif