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

#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

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