Changeset 41970 in vbox for trunk/src/VBox/Devices/Network/slirp/tftp.h
- Timestamp:
- Jun 29, 2012 5:55:17 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/tftp.h
r28800 r41970 31 31 #define TFTP_FILENAME_MAX 512 32 32 33 #if 0 33 34 struct tftp_t 34 35 { … … 51 52 } x; 52 53 }; 54 #else 55 #pragma pack(0) 56 typedef struct TFTPCOREHDR 57 { 58 uint16_t u16TftpOpCode; 59 #if 0 60 union { 61 uint16_t u16BlockNum; 62 uint16_t u16TftpErrorCode; 63 } X; 64 #endif 65 /* Data lays here (might be raw uint8_t* or header of payload ) */ 66 } TFTPCOREHDR, *PTFTPCOREHDR; 67 68 typedef struct TFTPIPHDR 69 { 70 struct ip IPv4Hdr; 71 struct udphdr UdpHdr; 72 uint16_t u16TftpOpType; 73 TFTPCOREHDR Core; 74 /* Data lays here */ 75 } TFTPIPHDR, *PTFTPIPHDR; 76 #pragma pack() 77 78 typedef const PTFTPIPHDR PCTFTPIPHDR; 79 #endif 53 80 54 81 void tftp_input(PNATState pData, struct mbuf *m);
Note:
See TracChangeset
for help on using the changeset viewer.