<feed xmlns='http://www.w3.org/2005/Atom'>
<title>libnl-tiny/include/netlink, branch master</title>
<subtitle>Tiny OpenWrt fork of libnl</subtitle>
<id>https://git.openwrt.org/project/libnl-tiny/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/libnl-tiny/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/'/>
<updated>2023-12-05T11:52:43Z</updated>
<entry>
<title>socket: change debug callbacks to pass struct nl_msg</title>
<updated>2023-12-05T11:52:43Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2023-12-05T11:52:42Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/commit/?id=965c4bf49658342ced0bd6e7cb069571b4a1ddff'/>
<id>urn:sha1:965c4bf49658342ced0bd6e7cb069571b4a1ddff</id>
<content type='text'>
This allows checking the netlink protocol in the callback

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>socket: add debug callbacks for rx/tx</title>
<updated>2023-12-04T19:20:45Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2023-12-04T19:20:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/commit/?id=af57bb123f933e8c11a58613d382ae15823206c6'/>
<id>urn:sha1:af57bb123f933e8c11a58613d382ae15823206c6</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>Make struct nla_policy and struct nlattr const</title>
<updated>2023-07-01T10:03:05Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2023-04-02T00:38:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/commit/?id=d433990c00e804593f253cc709b8fe901492b530'/>
<id>urn:sha1:d433990c00e804593f253cc709b8fe901492b530</id>
<content type='text'>
Make the struct nla_policy and the struct nlattr const in many places
like it is done in full libnl. This brings our libnl-tiny closer to the
upstream version.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>attr: add NLA_S* definitions</title>
<updated>2023-04-02T00:19:37Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2023-03-30T11:17:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/commit/?id=11b7c5f0745af2637b48131287f28689bb80ed3e'/>
<id>urn:sha1:11b7c5f0745af2637b48131287f28689bb80ed3e</id>
<content type='text'>
NLA_S8 is used by newer hostapd versions. Directly add all NLA_S*
definitions.

Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>libnl-tiny: fix duplicated branch in family.h</title>
<updated>2023-01-06T18:55:57Z</updated>
<author>
<name>Jesus Fernandez Manzano</name>
</author>
<published>2022-12-13T17:14:33Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/commit/?id=f5d9b7e4f534a69cbd35c3f150fa6d57b9d631e4'/>
<id>urn:sha1:f5d9b7e4f534a69cbd35c3f150fa6d57b9d631e4</id>
<content type='text'>
Duplicated branch in function genl_family_get_maxattr().
Detected by gcc with -Werror=duplicated-branches.

libnl-tiny/netlink/genl/family.h:118:5: error: this condition has
identical branches [-Werror=duplicated-branches]
  if (family-&gt;ce_mask &amp; FAMILY_ATTR_MAXATTR)

Signed-off-by: Jesus Fernandez Manzano &lt;jesus.manzano@galgus.net&gt;
</content>
</entry>
<entry>
<title>genl_family: explicitly null terminate strncpy destination buffer</title>
<updated>2022-05-23T19:02:38Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2022-05-23T19:02:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/commit/?id=28c44ca97cd546ef8168e7476472a0da022b3421'/>
<id>urn:sha1:28c44ca97cd546ef8168e7476472a0da022b3421</id>
<content type='text'>
The strncpy() function doesn't null terminate the destination string if
the source string is at least as long as the destination. (This behavior
is defined by the C99 specification.) As a result, the destination
string must be null terminated after calling strncpy().

And clang11 static analyzer thus reports following:

 genl_family.c:148:2: error: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 15 [-Werror=stringop-truncation]
   148 |  strncpy(grp-&gt;name, name, GENL_NAMSIZ - 1);
       |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

References: https://gitlab.com/openwrt/project/libnl-tiny/-/jobs/2495301251#L197
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>netlink: add NLA_F_NESTED to all nested attributes</title>
<updated>2022-05-17T18:15:59Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2022-05-17T18:15:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/commit/?id=b5b2ba09c4f1c8b3c21580aea7223edc2f5e92be'/>
<id>urn:sha1:b5b2ba09c4f1c8b3c21580aea7223edc2f5e92be</id>
<content type='text'>
Newer generic netlink APIs (e.g. wireguard) require this to be able to parse
nested attributes

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>attr.h: Add NLA_PUT_S32</title>
<updated>2021-12-14T21:11:05Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2021-11-20T23:08:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/commit/?id=8e0555fb39f51a5d6436b4f1370850caa03611ea'/>
<id>urn:sha1:8e0555fb39f51a5d6436b4f1370850caa03611ea</id>
<content type='text'>
This function is used by iw 5.16.

These new headers were copied from the mainline libnl.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>use offsetof macro to make scan-build happy</title>
<updated>2019-10-29T21:16:00Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-10-29T05:40:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/commit/?id=1f73b6a8e67881834b0512d3e07aaaf17e71b49e'/>
<id>urn:sha1:1f73b6a8e67881834b0512d3e07aaaf17e71b49e</id>
<content type='text'>
scan-build from clang version 9 complains about following:

 cache.c:106:2: warning: Dereference of null pointer
        nl_list_for_each_entry_safe(obj, tmp, &amp;cache-&gt;c_items, ce_list)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 include/netlink/list.h:83:20: note: expanded from macro 'nl_list_for_each_entry_safe'
             pos = n, n = nl_list_entry(n-&gt;member.next, typeof(*n), member))
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 include/netlink/list.h:60:2: note: expanded from macro 'nl_list_entry'
        nl_container_of(ptr, type, member)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 include/netlink/list.h:56:55: note: expanded from macro 'nl_container_of'
        const typeof( ((type *)0)-&gt;member ) *__mptr = (ptr);    \
                                                      ^~~~~

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
<entry>
<title>refactor into separate Git project</title>
<updated>2019-10-04T14:02:05Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2019-10-04T13:47:25Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/libnl-tiny/commit/?id=5b350e42d1fdf62908bfc099dd942ea8e21c64a5'/>
<id>urn:sha1:5b350e42d1fdf62908bfc099dd942ea8e21c64a5</id>
<content type='text'>
For improved reusability, testing etc.

Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
</content>
</entry>
</feed>
