<feed xmlns='http://www.w3.org/2005/Atom'>
<title>odhcpd/src/ndp.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>2025-11-23T19:05:35Z</updated>
<entry>
<title>ndp: correctness fix for BPF filter</title>
<updated>2025-11-23T19:05:35Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-10-17T13:32:08Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=650a5df88ebae82d956831c2f87c7c6eedd8c283'/>
<id>urn:sha1:650a5df88ebae82d956831c2f87c7c6eedd8c283</id>
<content type='text'>
Note that AF_PACKET sockets start receiving packets as soon as they are
created.  Thus, a packet can arrive between the creation of the socket
and the time the real filter is installed. Fix this using the same
technique as used in libpcap, i.e. by installing a drop-all filter,
removing any packets from the socket, then installing the real filter
later (an atomic operation which replaces the drop filter).

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Link: https://github.com/openwrt/odhcpd/pull/319
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>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>
<entry>
<title>odhcpd: add log helpers</title>
<updated>2025-10-18T15:40:09Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-10-08T05:27:08Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=5de3b0d5b509ca7be58b0bdb8dbadc70a5fb898f'/>
<id>urn:sha1:5de3b0d5b509ca7be58b0bdb8dbadc70a5fb898f</id>
<content type='text'>
These a just a bit more succinct than their syslog equivalents. Also, this lays
the ground for the next patch.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
Link: https://github.com/openwrt/odhcpd/pull/273
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>ndp: fix macOS IPv6 compatibility by using link-local source addresses</title>
<updated>2025-10-09T06:43:26Z</updated>
<author>
<name>Stephen Groat</name>
</author>
<published>2025-10-08T18:54:51Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=d402cdae431668f55f9d82b7072b0afa3b8090df'/>
<id>urn:sha1:d402cdae431668f55f9d82b7072b0afa3b8090df</id>
<content type='text'>
macOS ignores NDP packets that don't originate from link-local addresses,
causing IPv6 connectivity issues with odhcpd. This change ensures NDP
packets (Neighbor Advertisements and ICMP Echo Requests) are sent using
link-local source addresses for RFC 4861 compliance.

Changes:
* Add ndp_from_link_local configuration flag (defaults to true)
* Add odhcpd_send_with_src() to allow explicit source address control
* Add odhcpd_try_send_with_src() helper to eliminate code duplication
* Add odhcpd_get_interface_linklocal_addr() with caching for performance
* Update send_na() and ping6() to use link-local source addresses when
  enabled
* Add RFC 4861, §4.2 comments explaining the mandated behavior
* Maintain backward compatibility with fallback behavior

Fixes: openwrt/openwrt#7561 #202
Signed-off-by: Stephen Groat &lt;stephengroat@gmail.com&gt;
Link: https://github.com/openwrt/odhcpd/pull/242
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>ndp: Allow NS loopback for master iface</title>
<updated>2025-10-03T05:37:28Z</updated>
<author>
<name>Haoyi Ci</name>
</author>
<published>2025-10-02T08:14:05Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=f0d855358b86a36efbfeb5a9de5a1d2a4d9d80fe'/>
<id>urn:sha1:f0d855358b86a36efbfeb5a9de5a1d2a4d9d80fe</id>
<content type='text'>
This commit modifies handle_solicit() in ndp.c to correct IPv6 relay
handling of Neighbor Solicitation (NS) requests when no upstream
solicitation is received.

Background: In IPv6 relay mode, odhcpd discovers local devices only upon
receiving upstream NS packets. If no upstream NS arrives (e.g. because the
upstream router’s neighbor cache is still valid or no solicitation was
ever sent), OpenWrt may attempt neighbor resolution via the master (WAN)
interface instead of the LAN, leaving local devices undiscoverable and
breaking connectivity.

- When an NS packet is sent by the host's master interface, do not
  immediately return; instead continue searching slave interfaces for the
  target neighbor.
- When odhcpd responds to NS packets, add a check to prevent replying to
  NS packets that were sent by the host itself.

Signed-off-by: Haoyi Ci cihaoyi@outlook.com
Link: https://github.com/openwrt/odhcpd/pull/240
Signed-off-by: Álvaro Fernández Rojas &lt;noltari@gmail.com&gt;
</content>
</entry>
<entry>
<title>treewide: spell-fixes and new comments for extra clarification</title>
<updated>2024-05-07T22:06:41Z</updated>
<author>
<name>Paul Donald</name>
</author>
<published>2024-04-09T03:04:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=a2176af7bdeb1e478c7cb5340771a53b3c12bc80'/>
<id>urn:sha1:a2176af7bdeb1e478c7cb5340771a53b3c12bc80</id>
<content type='text'>
Fix some spell mistake and add new comments for extra clatification.

Signed-off-by: Paul Donald &lt;newtwen@gmail.com&gt;
Reviewed-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
[ improve commit title ]
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>treewide: optimize syslog priority values</title>
<updated>2019-12-15T19:44:16Z</updated>
<author>
<name>Hans Dedecker</name>
</author>
<published>2019-12-15T19:17:32Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=d60f0a6284e8f5fac733a1b269ea614ccdf47fcd'/>
<id>urn:sha1:d60f0a6284e8f5fac733a1b269ea614ccdf47fcd</id>
<content type='text'>
Signed-off-by: Hans Dedecker &lt;dedeckeh@gmail.com&gt;
</content>
</entry>
<entry>
<title>ndp: fix endian issue</title>
<updated>2019-10-13T18:39:33Z</updated>
<author>
<name>Hans Dedecker</name>
</author>
<published>2019-10-13T18:37:14Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/project/odhcpd/commit/?id=9a4531a4313c4b32a9ffae92c00a59a4d4b738a8'/>
<id>urn:sha1:9a4531a4313c4b32a9ffae92c00a59a4d4b738a8</id>
<content type='text'>
Fix endian issue introduced in commit 91a28e4 by using
ND_NA_FLAG_SOLICITED defined in netinet/icmp6.h

Signed-off-by: Hans Dedecker &lt;dedeckeh@gmail.com&gt;
</content>
</entry>
</feed>
