]> git.proxmox.com Git - qemu.git/blobdiff - slirp/tftp.h
slirp: call socket_set_fast_reuse instead of setting SO_REUSEADDR
[qemu.git] / slirp / tftp.h
index 72e5e91bef6bccc35d7788d40bd29c8686569638..87adeb533352e6736422ec291df3e6ceae3d9a01 100644 (file)
@@ -1,4 +1,6 @@
 /* tftp defines */
+#ifndef SLIRP_TFTP_H
+#define SLIRP_TFTP_H 1
 
 #define TFTP_SESSIONS_MAX 3
 
@@ -33,11 +35,15 @@ struct tftp_t {
 struct tftp_session {
     Slirp *slirp;
     char *filename;
+    int fd;
 
     struct in_addr client_ip;
     uint16_t client_port;
+    uint32_t block_nr;
 
     int timestamp;
 };
 
 void tftp_input(struct mbuf *m);
+
+#endif