commit | a760ba76b68f84cabd7521f9c7b2c552eca7c508 | [log] [tgz] |
---|---|---|
author | Tim Pambor <tim.pambor@codewrights.de> | Fri May 30 20:11:37 2025 +0200 |
committer | Dan Kalowsky <dank@deadmime.org> | Tue Jun 03 21:32:54 2025 -0700 |
tree | 7ca73fb8e9d9f76da7a6bef1b7b0f1fadf99f5bd | |
parent | 1e14953480c9bc191a9debab81b4aa225ab16884 [diff] |
net: ip: 6lo: Fix undefined behavior reported by UBSAN htonl() and htons() take uint32_t/uint16_t as argument. Add the 'u' suffix to constants to ensure the correct unsigned type is used and to avoid undefined behavior if these functions are implemented as macros using bit shifts. Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>