platform/netlink: add NLA_S32 enum value for attribute type

This commit is contained in:
Thomas Haller
2022-07-15 11:43:14 +02:00
parent 8d0b30b243
commit 45ca7dfaf3
2 changed files with 2 additions and 0 deletions

View File

@@ -619,6 +619,7 @@ nla_nest_end(struct nl_msg *msg, struct nlattr *start)
static const uint8_t nla_attr_minlen[NLA_TYPE_MAX + 1] = { static const uint8_t nla_attr_minlen[NLA_TYPE_MAX + 1] = {
[NLA_U8] = sizeof(uint8_t), [NLA_U8] = sizeof(uint8_t),
[NLA_U16] = sizeof(uint16_t), [NLA_U16] = sizeof(uint16_t),
[NLA_S32] = sizeof(int32_t),
[NLA_U32] = sizeof(uint32_t), [NLA_U32] = sizeof(uint32_t),
[NLA_U64] = sizeof(uint64_t), [NLA_U64] = sizeof(uint64_t),
[NLA_STRING] = 1, [NLA_STRING] = 1,

View File

@@ -31,6 +31,7 @@ enum {
NLA_UNSPEC, /* Unspecified type, binary data chunk */ NLA_UNSPEC, /* Unspecified type, binary data chunk */
NLA_U8, /* 8 bit integer */ NLA_U8, /* 8 bit integer */
NLA_U16, /* 16 bit integer */ NLA_U16, /* 16 bit integer */
NLA_S32, /* 32 bit integer */
NLA_U32, /* 32 bit integer */ NLA_U32, /* 32 bit integer */
NLA_U64, /* 64 bit integer */ NLA_U64, /* 64 bit integer */
NLA_STRING, /* NUL terminated character string */ NLA_STRING, /* NUL terminated character string */