diff options
Diffstat (limited to 'src/tftp.h')
-rw-r--r-- | src/tftp.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -20,11 +20,13 @@ #define TFTP_FILENAME_MAX 512 #define TFTP_BLOCKSIZE_MAX 1428 +SLIRP_PACKED_BEGIN struct tftphdr { struct udphdr udp; uint16_t tp_op; -} SLIRP_PACKED; +} SLIRP_PACKED_END; +SLIRP_PACKED_BEGIN struct tftp_t { struct tftphdr hdr; union { @@ -38,7 +40,7 @@ struct tftp_t { } tp_error; char tp_buf[TFTP_BLOCKSIZE_MAX + 2]; } x; -} SLIRP_PACKED; +} SLIRP_PACKED_END; struct tftp_session { Slirp *slirp; |