Corrected bitfields -- the smallest datatype required for each bitfield is now used...
[pub/USBasp.git] / Demos / Device / RNDISEthernet / TCP.h
index 2125485..25fa657 100644 (file)
                        uint32_t               SequenceNumber; /**< Data sequence number of the packet */\r
                        uint32_t               AcknowledgmentNumber; /**< Data acknowledgment number of the packet */\r
                        \r
-                       unsigned int           Reserved : 4; /**< Reserved, must be all 0 */\r
-                       unsigned int           DataOffset : 4; /**< Offset of the data from the start of the header, in 4 byte chunks */\r
+                       unsigned char          Reserved : 4; /**< Reserved, must be all 0 */\r
+                       unsigned char          DataOffset : 4; /**< Offset of the data from the start of the header, in 4 byte chunks */\r
                        uint8_t                Flags; /**< TCP packet flags */\r
                        uint16_t               WindowSize; /**< Current data window size (bytes remaning in reception buffer) */\r
                        \r