enum netconf_nla_typeΒΆ

Parameter types from DEVLINK_ATTR_PARAM_TYPE.

These must have the same values as NLA_* constants defined in include/net/netlink.h in Linux kernel sources. I have no idea why they are not defined in any header which can be included from here or why netlink_attribute_type enum in include/linux/netlink.h differs from the list defined in kernel sources.

#include <netconf.h>

enum netconf_nla_type {
    NETCONF_NLA_UNSPEC,
    NETCONF_NLA_U8,
    NETCONF_NLA_U16,
    NETCONF_NLA_U32,
    NETCONF_NLA_U64,
    NETCONF_NLA_STRING,
    NETCONF_NLA_FLAG,
};