summaryrefslogtreecommitdiffstats
path: root/src/include/tftpcore.h
diff options
context:
space:
mode:
authorMichael Brown2005-06-01 20:00:01 +0200
committerMichael Brown2005-06-01 20:00:01 +0200
commitf2198e8a654581f97daaeda301cd8735aa9e3254 (patch)
treec4cd52cc9c647771ba08f4e627b8e4e04cd69930 /src/include/tftpcore.h
parentRemove prototypes for obsolete functions (diff)
downloadipxe-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.h14
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 );