#ifndef __NET_NETLINK_WRAPPER_H
#define __NET_NETLINK_WRAPPER_H 1
+#include <linux/version.h>
#include_next <net/netlink.h>
#ifndef HAVE_NLA_NUL_STRING
}
#endif /* !HAVE_NLA_GET_BE16 */
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+/**
+ * nla_type - attribute type
+ * @nla: netlink attribute
+ */
+static inline int nla_type(const struct nlattr *nla)
+{
+ return nla->nla_type & NLA_TYPE_MASK;
+}
+#endif
+
#endif /* net/netlink.h */