Skip to content
Commit a760ba76 authored by Tim Pambor's avatar Tim Pambor Committed by Dan Kalowsky
Browse files

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: default avatarTim Pambor <tim.pambor@codewrights.de>
parent 1e149534
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment