mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 04:28:12 +03:00
Don't choke on duplicate OACK packets.
Make await_tftp() static and create tftp_get() for fetching the next TFTP packet instead.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user