Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RTPS: Pack count field of ACKNACK submessage correctly (#3915)
* Pack count field of ACKNACK submessage correctly The count field of ACKNACK submessage is an integer field and should be packed using the endianness flag, just like how the count field of HEARTBEAT submessage is handled. Currently, `count=1` is incorrectly packed as `"\x00\x00\x00\x01"` (== 16777216), regardless of the endianness bit. With this change, `count=1` is correctly packed as `"\x01\x00\x00\x00"` (== 1), given the endianness is set. * add a unit test Signed-off-by: Seulbae Kim <squizz617@gmail.com> --------- Signed-off-by: Seulbae Kim <squizz617@gmail.com>
- Loading branch information