File:  [ELWIX - Embedded LightWeight unIX -] / tftpd / inc / tftp.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Fri Feb 14 15:38:37 2014 UTC (10 years, 4 months ago) by misho
Branches: misho
CVS tags: tftp0_5, tftp0_4, tftp0_3, tftp0_2, start, TFTP0_4, TFTP0_3, TFTP0_2
ELWIX tftpd server

    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>