From f2198e8a654581f97daaeda301cd8735aa9e3254 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 1 Jun 2005 18:00:01 +0000 Subject: Don't choke on duplicate OACK packets. Make await_tftp() static and create tftp_get() for fetching the next TFTP packet instead. --- src/include/tftpcore.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/tftpcore.h b/src/include/tftpcore.h index cbe86bdc0..c0fbd2796 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 ); -- cgit v1.2.3-55-g7522