Annotation of tftpd/inc/tftp.h, revision 1.1

1.1     ! misho       1: #ifndef __TFTP_H
        !             2: #define __TFTP_H
        !             3: 
        !             4: 
        !             5: struct tftp_hdr {
        !             6:        u_short tftp_opc;
        !             7:        u_char  tftp_data[];
        !             8: } __packed;
        !             9: 
        !            10: 
        !            11: #define TFTP_OPC_RRQ   1
        !            12: #define TFTP_OPC_WRQ   2
        !            13: #define TFTP_OPC_DATA  3
        !            14: #define TFTP_OPC_ACK   4
        !            15: #define TFTP_OPC_ERROR 5
        !            16: #define TFTP_OPC_OACK  6
        !            17: 
        !            18: #define TFTP_MODE_ASCII        "netascii"
        !            19: #define TFTP_MODE_OCTET        "octet"
        !            20: #define TFTP_MODE_MAIL "mail"
        !            21: 
        !            22: struct tagErr {
        !            23:        u_short err_code;
        !            24:        char    *err_msg;
        !            25: };
        !            26: 
        !            27: extern const struct tagErr errs[9];
        !            28: 
        !            29: 
        !            30: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>