summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-08-22 15:14:04 +0200
committerSven Eckelmann <sven@narfation.org>2026-08-30 19:51:11 +0200
commitd9304a90eca5703ae8301415b417ad63ddd44d7f (patch)
tree91fc1d29dd20977d84afac4a4cd0032bf7128bc8 /tools/lib/python
parenta5f7058bee1ec6d0df7a0dc20279775ee116f3fb (diff)
batman-adv: ensure u16 aligned mac address in structs
An u8 array in structures have a natural alignment of only 1 byte. An u8[ETH_ALEN] array must therefore be assumed to only be 1 byte aligned. But many etherdevices.h functions are requiring a 2 byte (u16) alignment. All these addresses were either on the start of a struct or after a struct member which required at least an alignment of 2 byte. Still, annote all u8[ETH_ALEN] arrays on the stack as __aligned(2) to make sure that this assumption isn't broken by other modifications inside the structs. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions