mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 09:01:24 +03:00
Protocols now load data into a buffer; they don't execute it.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define TFTP_H
|
||||
|
||||
#include "in.h"
|
||||
#include "buffer.h"
|
||||
#include "nic.h"
|
||||
|
||||
#define TFTP_PORT 69
|
||||
@@ -83,11 +84,7 @@ struct tftpblk_info_t {
|
||||
*/
|
||||
extern int tftp_block ( struct tftpreq_info_t *request,
|
||||
struct tftpblk_info_t *block );
|
||||
extern int tftp ( char *url,
|
||||
struct sockaddr_in *server,
|
||||
char *file,
|
||||
int ( * process ) ( unsigned char *data,
|
||||
unsigned int blocknum,
|
||||
unsigned int len, int eof ) );
|
||||
extern int tftp ( char *url, struct sockaddr_in *server, char *file,
|
||||
struct buffer *buffer );
|
||||
|
||||
#endif /* TFTP_H */
|
||||
|
||||
Reference in New Issue
Block a user