<feed xmlns='http://www.w3.org/2005/Atom'>
<title>odhcpd/src/netlink.c, branch master</title>
<subtitle>OpenWrt DHCP Server</subtitle>
<id>https://git-03.infra.openwrt.org/project/odhcpd/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/project/odhcpd/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/'/>
<updated>2026-01-10T09:45:22Z</updated>
<entry>
<title>netlink: clean up sockets, close files</title>
<updated>2026-01-10T09:45:22Z</updated>
<author>
<name>Paul Donald</name>
</author>
<published>2025-12-30T15:13:29Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=3cbbea830ddd1d9e55a5ba77b49bacbac0257685'/>
<id>urn:sha1:3cbbea830ddd1d9e55a5ba77b49bacbac0257685</id>
<content type='text'>
Sockets are handled for most usage paths, except for shutdown. Handle
those at shutdown.

Signed-off-by: Paul Donald &lt;newtwen+github@gmail.com&gt;
Link: https://github.com/openwrt/odhcpd/pull/367
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>netlink: make it clearer that we're handling realloc correctly</title>
<updated>2025-11-27T07:24:53Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-11-23T14:15:33Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=ae9e22ab3fadd1ca300902d952d340a70d2e9ce5'/>
<id>urn:sha1:ae9e22ab3fadd1ca300902d952d340a70d2e9ce5</id>
<content type='text'>
This doesn't really change the code, it just makes it clearer when
grepping for realloc() that failure is handled correctly.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Link: https://github.com/openwrt/odhcpd/pull/320
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>netlink: add netmask for IPv4</title>
<updated>2025-11-27T07:24:02Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-11-18T07:55:41Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=fca3fee38ea48843f277e26624e9555d8b74edc5'/>
<id>urn:sha1:fca3fee38ea48843f277e26624e9555d8b74edc5</id>
<content type='text'>
Add a netmask member to struct odhcpd_ipaddr, this is mostly for
convenience.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Link: https://github.com/openwrt/odhcpd/pull/320
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>netlink: variable naming cleanup</title>
<updated>2025-11-27T07:23:59Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-11-18T07:53:37Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=e8022eebc8a7d4c85d763e2121b98d98989e9263'/>
<id>urn:sha1:e8022eebc8a7d4c85d763e2121b98d98989e9263</id>
<content type='text'>
Correct some comments, use boolean where a boolean value is expected,
rename more "struct odhcpd_ipaddr" variables to indicate that it is a
struct odhcpd_ipaddr and indicate plural/IPv4/IPv6 in the variable
names.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Link: https://github.com/openwrt/odhcpd/pull/320
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>odhcpd: rename iface-&gt;addr4 -&gt; iface-&gt;oaddrs4</title>
<updated>2025-11-27T07:23:50Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-11-17T22:58:48Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=75dfe0e71050374a04cead57924bc58e9b27dd70'/>
<id>urn:sha1:75dfe0e71050374a04cead57924bc58e9b27dd70</id>
<content type='text'>
Rename iface-&gt;addr4 to iface-&gt;oaddrs4, to make it clearer from a cursory
glance that this isn't e.g. "struct in_addr" addresses but a number of
"struct odhcpd_ipaddr" addresses.

At the same time, rename iface-&gt;addr4_len to iface-&gt;oaddrs4_cnt, to make
it clear that this is a count and not e.g. an allocation length.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Link: https://github.com/openwrt/odhcpd/pull/320
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>odhcpd: rename prefix -&gt; prefix_len</title>
<updated>2025-11-27T07:23:45Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-11-17T22:37:50Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=66e7739f7c86a45cb9da06affb26ef951b0649e5'/>
<id>urn:sha1:66e7739f7c86a45cb9da06affb26ef951b0649e5</id>
<content type='text'>
Change a bunch of places where a prefix length is stored as "prefix" to
instead call the length "prefix_len", to make it clearer that it is not
a prefix that is stored.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Link: https://github.com/openwrt/odhcpd/pull/320
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>src: improve attributes</title>
<updated>2025-11-17T07:24:50Z</updated>
<author>
<name>Álvaro Fernández Rojas</name>
</author>
<published>2025-11-13T10:28:12Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=8ffe79e3f08691335e37548bfa92d9aaa9b2134e'/>
<id>urn:sha1:8ffe79e3f08691335e37548bfa92d9aaa9b2134e</id>
<content type='text'>
- Properly guard odhcp6c.h attributes with `#ifndef` to avoid redefining
them when including external headers.
- Also convert the remaining __attribute__ usages to the custom
declarations.
- Consolidate custom declarations with _o_ prefix.

Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
Link: https://github.com/openwrt/odhcpd/pull/307
</content>
</entry>
<entry>
<title>src: consolidate and improve fallthrough</title>
<updated>2025-11-17T07:24:34Z</updated>
<author>
<name>Álvaro Fernández Rojas</name>
</author>
<published>2025-11-14T06:57:21Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=8a8bb3c1a673e567c438472339084943df72540b'/>
<id>urn:sha1:8a8bb3c1a673e567c438472339084943df72540b</id>
<content type='text'>
- Enable fallthrough warnings.
- Use fallthrough attribute instead of comments.
- Drop unneeded fallthroughs (no code between two case statements).

Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
Link: https://github.com/openwrt/odhcpd/pull/307
</content>
</entry>
<entry>
<title>netlink: fix typo in debug msg</title>
<updated>2025-11-11T13:18:39Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-11-11T12:08:22Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=f13d2cecaebf8b1ec31692b74b63169a7548c1ea'/>
<id>urn:sha1:f13d2cecaebf8b1ec31692b74b63169a7548c1ea</id>
<content type='text'>
As noted by @CasperVector in #115, there's a typo in netlink.c,
checking if true is true isn't very useful :)

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Link: https://github.com/openwrt/odhcpd/pull/305
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>src: fix whitespace issues</title>
<updated>2025-11-11T11:46:15Z</updated>
<author>
<name>Álvaro Fernández Rojas</name>
</author>
<published>2025-11-10T12:36:33Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=fa6e63bb8200146ee986054bccaf936b132c9c11'/>
<id>urn:sha1:fa6e63bb8200146ee986054bccaf936b132c9c11</id>
<content type='text'>
- Remove double whitespaces.
- Convert whitespace alignments to tabs.
- Fix code comments using whitespaces.

Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
</feed>
