This header file is needed for additional signed bindings which are not in netlink library, currently. Signed-off-by: Alexander Aring <alex.aring@xxxxxxxxx> --- src/nl_extras.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/nl_extras.h diff --git a/src/nl_extras.h b/src/nl_extras.h new file mode 100644 index 0000000..39a97c6 --- /dev/null +++ b/src/nl_extras.h @@ -0,0 +1,36 @@ +#ifndef __NL_EXTRAS_H +#define __NL_EXTRAS_H + +#ifndef NLA_S8 + +#define NLA_S8 13 +#define NLA_PUT_S8(n, attrtype, value) \ + NLA_PUT_TYPE(n, int8_t, attrtype, value) + +#endif /* NLA_S8 */ + +#ifndef NLA_S16 + +#define NLA_S16 14 +#define NLA_PUT_S16(n, attrtype, value) \ + NLA_PUT_TYPE(n, int16_t, attrtype, value) + +#endif /* NLA_S16 */ + +#ifndef NLA_S32 + +#define NLA_S32 15 +#define NLA_PUT_S32(n, attrtype, value) \ + NLA_PUT_TYPE(n, int32_t, attrtype, value) + +#endif /* NLA_S32 */ + +#ifndef NLA_S64 + +#define NLA_S64 16 +#define NLA_PUT_S64(n, attrtype, value) \ + NLA_PUT_TYPE(n, int64_t, attrtype, value) + +#endif /* NLA_S64 */ + +#endif /* __NL_EXTRAS_H */ -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html