2005-06-01 11:01:59 +00:00
|
|
|
#ifndef TFTPCORE_H
|
|
|
|
#define TFTPCORE_H
|
|
|
|
|
2005-06-01 18:00:01 +00:00
|
|
|
/** @file
|
|
|
|
*
|
|
|
|
* TFTP core functions
|
|
|
|
*
|
|
|
|
* This file provides functions that are common to the TFTP (rfc1350),
|
|
|
|
* TFTM (rfc2090) and MTFTP (PXE) protocols.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2005-06-01 11:01:59 +00:00
|
|
|
#include "tftp.h"
|
|
|
|
|
|
|
|
extern int tftp_open ( struct tftp_state *state, const char *filename,
|
2005-06-01 19:10:25 +00:00
|
|
|
union tftp_any **reply, int multicast );
|
2005-06-01 11:01:59 +00:00
|
|
|
|
|
|
|
extern int tftp_process_opts ( struct tftp_state *state,
|
|
|
|
struct tftp_oack *oack );
|
|
|
|
|
|
|
|
extern int tftp_ack_nowait ( struct tftp_state *state );
|
|
|
|
|
2005-06-01 18:02:24 +00:00
|
|
|
extern int tftp_get ( struct tftp_state *state, long timeout,
|
|
|
|
union tftp_any **reply );
|
|
|
|
|
2005-06-01 11:01:59 +00:00
|
|
|
extern int tftp_ack ( struct tftp_state *state, union tftp_any **reply );
|
|
|
|
|
|
|
|
extern int tftp_error ( struct tftp_state *state, int errcode,
|
|
|
|
const char *errmsg );
|
|
|
|
|
|
|
|
extern void tftp_set_errno ( struct tftp_error *error );
|
|
|
|
|
|
|
|
#endif /* TFTPCORE_H */
|