mirror of
https://git.netfilter.org/libmnl
synced 2026-01-26 10:34:28 +00:00
NLA_UINT attributes have a 4-byte payload if possible, and an 8-byte one if necessary. There are some NLA_UINT attributes that lack an appropriate getter function. Add a function mnl_attr_get_uint() to cover that extract these. Since we need to dispatch on length anyway, make the getter truly universal by supporting also u8 and u16. Signed-off-by: Danielle Ratson <danieller@nvidia.com> Signed-off-by: Phil Sutter <phil@nwl.cc>