diff --git a/extra/libnl-tiny/build b/extra/libnl-tiny/build index d2fc5f24..6edb407b 100755 --- a/extra/libnl-tiny/build +++ b/extra/libnl-tiny/build @@ -1,3 +1,5 @@ #!/bin/sh -e +patch -p1 < nla_s8.patch + make ALL_LIBS=libnl-tiny.a DESTDIR="$1" prefix=/usr install diff --git a/extra/libnl-tiny/checksums b/extra/libnl-tiny/checksums index 2e71aa1c..0ca0eef1 100644 --- a/extra/libnl-tiny/checksums +++ b/extra/libnl-tiny/checksums @@ -1 +1,2 @@ d08d8c719d98d3ee9682173f0de0e3768abe024b95c60729b0c7385224a1e840d4 +0feaf6f2d721c5878b62b36c64de485322dbc9a0783e1d9d8b744c616bc3080650 diff --git a/extra/libnl-tiny/patches/nla_s8.patch b/extra/libnl-tiny/patches/nla_s8.patch new file mode 100644 index 00000000..9a48b1f4 --- /dev/null +++ b/extra/libnl-tiny/patches/nla_s8.patch @@ -0,0 +1,30 @@ +diff --git a/include/netlink/attr.h b/include/netlink/attr.h +index 3e3047f..789e8c2 100644 +--- a/include/netlink/attr.h ++++ b/include/netlink/attr.h +@@ -45,6 +45,7 @@ enum { + NLA_FLAG, /**< Flag */ + NLA_MSECS, /**< Micro seconds (64bit) */ + NLA_NESTED, /**< Nested attributes */ ++ NLA_S8, + __NLA_TYPE_MAX, + }; + +@@ -248,6 +249,17 @@ static inline int nla_put_addr(struct nl_msg *msg, int attrtype, struct nl_addr + * @name Integer Attributes + */ + ++/** ++ * Return value of 8 bit signed integer attribute. ++ * @arg nla 8 bit integer attribute ++ * ++ * @return Payload as 8 bit integer ++ */ ++static inline int8_t nla_get_s8(const struct nlattr *nla) ++{ ++ return *(const int8_t *) nla_data(nla); ++} ++ + /** + * Add 8 bit integer attribute to netlink message. + * @arg msg Netlink message. diff --git a/extra/libnl-tiny/sources b/extra/libnl-tiny/sources index 0feada7e..37183936 100644 --- a/extra/libnl-tiny/sources +++ b/extra/libnl-tiny/sources @@ -1 +1,2 @@ https://github.com/sabotage-linux/libnl-tiny/archive/39ec78bb012edc2739c3d3d0058e4076411068b1.tar.gz +patches/nla_s8.patch diff --git a/extra/libnl-tiny/version b/extra/libnl-tiny/version index 147d0df6..efd25fce 100644 --- a/extra/libnl-tiny/version +++ b/extra/libnl-tiny/version @@ -1 +1 @@ -28c44ca97cd546ef8168e7476472a0da022b3421 1 +39ec78bb012edc2739c3d3d0058e4076411068b1 1