Corrected bitfields -- the smallest datatype required for each bitfield is now used, rather than relying on GCC to truncate unused bytes in bitfields (thanks to Walt Sacuta).
This commit is contained in:
parent
1c9092a8a6
commit
ca641bba83
4 changed files with 41 additions and 41 deletions
|
@ -221,8 +221,8 @@
|
|||
uint32_t SequenceNumber; /**< Data sequence number of the packet */
|
||||
uint32_t AcknowledgmentNumber; /**< Data acknowledgment number of the packet */
|
||||
|
||||
unsigned int Reserved : 4; /**< Reserved, must be all 0 */
|
||||
unsigned int DataOffset : 4; /**< Offset of the data from the start of the header, in 4 byte chunks */
|
||||
unsigned char Reserved : 4; /**< Reserved, must be all 0 */
|
||||
unsigned char DataOffset : 4; /**< Offset of the data from the start of the header, in 4 byte chunks */
|
||||
uint8_t Flags; /**< TCP packet flags */
|
||||
uint16_t WindowSize; /**< Current data window size (bytes remaning in reception buffer) */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue