diff options
author | Michael Brown | 2005-06-01 20:00:01 +0200 |
---|---|---|
committer | Michael Brown | 2005-06-01 20:00:01 +0200 |
commit | f2198e8a654581f97daaeda301cd8735aa9e3254 (patch) | |
tree | c4cd52cc9c647771ba08f4e627b8e4e04cd69930 /src/include/tftpcore.h | |
parent | Remove prototypes for obsolete functions (diff) | |
download | ipxe-f2198e8a654581f97daaeda301cd8735aa9e3254.tar.gz ipxe-f2198e8a654581f97daaeda301cd8735aa9e3254.tar.xz ipxe-f2198e8a654581f97daaeda301cd8735aa9e3254.zip |
Don't choke on duplicate OACK packets.
Make await_tftp() static and create tftp_get() for fetching the next TFTP
packet instead.
Diffstat (limited to 'src/include/tftpcore.h')
-rw-r--r-- | src/include/tftpcore.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/include/tftpcore.h b/src/include/tftpcore.h index cbe86bdc..c0fbd279 100644 --- a/src/include/tftpcore.h +++ b/src/include/tftpcore.h @@ -1,11 +1,19 @@ #ifndef TFTPCORE_H #define TFTPCORE_H +/** @file + * + * TFTP core functions + * + * This file provides functions that are common to the TFTP (rfc1350), + * TFTM (rfc2090) and MTFTP (PXE) protocols. + * + */ + #include "tftp.h" -extern int await_tftp ( int ival, void *ptr, unsigned short ptype, - struct iphdr *ip, struct udphdr *udp, - struct tcphdr *tcp ); +extern int tftp_get ( struct tftp_state *state, long timeout, + union tftp_any **reply ); extern int tftp_open ( struct tftp_state *state, const char *filename, union tftp_any **reply ); |