<feed xmlns='http://www.w3.org/2005/Atom'>
<title>luci/libs/rpcd-mod-luci/src/luci.c, branch master</title>
<subtitle>Lua Configuration Interface (mirror)</subtitle>
<id>https://git.openwrt.org/project/luci/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/luci/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/'/>
<updated>2025-12-03T12:36:29Z</updated>
<entry>
<title>rpcd-mod-luci: report the interface for leases</title>
<updated>2025-12-03T12:36:29Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-11-30T18:43:29Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=570b4bfe6f0af576cd192dfef098fe5f8eabb1df'/>
<id>urn:sha1:570b4bfe6f0af576cd192dfef098fe5f8eabb1df</id>
<content type='text'>
This adds support to rpcd-mod-luci's ubus interface to report also which
interface a given lease corresponds to, which will make it possible to
expose that information in LuCI.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
</content>
</entry>
<entry>
<title>rpcd-mod-luci: fix default odhcpd statefile location</title>
<updated>2025-12-03T12:36:29Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-11-30T18:34:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=338b379d4d28742d4062b7c5224292a74a155b99'/>
<id>urn:sha1:338b379d4d28742d4062b7c5224292a74a155b99</id>
<content type='text'>
The default location for the lease file has changed in odhcpd, update
rpcd-mod-luci to reflect the new default location.

See:
https://github.com/openwrt/openwrt/blob/c9e7f32c4c09277ae945299d068230226994c19c/package/network/services/odhcpd/files/odhcpd.defaults#L29-L31

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
</content>
</entry>
<entry>
<title>rpcd-mod-luci: correct DUID logic</title>
<updated>2025-12-03T12:36:29Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-11-30T17:35:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=3b7869e6dfa2404849036ef8767b240ce48383ac'/>
<id>urn:sha1:3b7869e6dfa2404849036ef8767b240ce48383ac</id>
<content type='text'>
dnsmasq writes a statefile for DHCPv4 leases with the MAC address as the
second field and the clientid as the fifth field. The clientid starts
with a type byte (0x01 = ethernet, 0xff = DUID/IAID identifier).

Similarly, odhcpd writes the MAC address as the second field for IPv4
leases.

This patch changes the behaviour of rpcd-mod-luci so that it doesn't
report a non-DUID as a DUID.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
</content>
</entry>
<entry>
<title>rpcd-mod-luci,luci-mod-network: suggest DUID%IAID values</title>
<updated>2025-10-24T18:23:34Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-10-05T09:52:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=431787af0c63bf26ba30a51faf742f42dcd842e4'/>
<id>urn:sha1:431787af0c63bf26ba30a51faf742f42dcd842e4</id>
<content type='text'>
Change the getDUIDHints RPC method to return "DUID%IAID" hints (if the IAID is
known, which it is with odhcpd). Use the complete hints in luci-mod-network.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
</content>
</entry>
<entry>
<title>luci-mod-network,-status: show DHCPv6 lease IAID</title>
<updated>2025-09-22T16:16:07Z</updated>
<author>
<name>David Härdeman</name>
</author>
<published>2025-09-16T16:27:56Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=19057e3760da6b3263c8512609b91044ed27eb17'/>
<id>urn:sha1:19057e3760da6b3263c8512609b91044ed27eb17</id>
<content type='text'>
The IAID is important information as it allows the user to know which
interface on the client device a given DHCPv6 lease corresponds to.
odhcpd already exposes this information (e.g. via "ubus call dhcp
ipv6leases"), but it would be good to have access to the same
information via the web interface, especially since odhcpd does take the
IAID into account when allocating addresses.

Signed-off-by: David Härdeman &lt;david@hardeman.nu&gt;
</content>
</entry>
<entry>
<title>rpcd-mod-luci: strip colon from dnsmasq duid</title>
<updated>2024-07-26T00:13:46Z</updated>
<author>
<name>Ansuel Smith</name>
</author>
<published>2020-12-07T16:57:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=f71e9cbd42db24c7743589804dacfdf5513ca883'/>
<id>urn:sha1:f71e9cbd42db24c7743589804dacfdf5513ca883</id>
<content type='text'>
Dnsmasq DHCPv6 use colons in the generated duid present in the lease file. Strip the colon as this is not supported by the OpenWrt config and follow the same way odhcpd use to display duid.

Fixes: #4543

Signed-off-by: Ansuel Smith &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>rpcd-mod-luci: use standard POSIX header for basename()</title>
<updated>2024-03-06T08:26:29Z</updated>
<author>
<name>Tony Ambardar</name>
</author>
<published>2024-03-06T08:09:20Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=8b08b48df99c42918ab443dea29bd42652abed36'/>
<id>urn:sha1:8b08b48df99c42918ab443dea29bd42652abed36</id>
<content type='text'>
The musl libc only implements POSIX basename() but provided a GNU header
kludge in &lt;string.h&gt;, which was removed in musl 1.2.5 [1]. Use the standard
&lt;libgen.h&gt; header to avoid compilation errors like:

luci.c: In function 'rpc_luci_parse_network_device_sys':
luci.c:676:53: error: implicit declaration of function 'basename' [-Werror=implicit-function-declaration]
  676 |                 blobmsg_add_string(&amp;blob, "master", basename(link));
      |                                                     ^~~~~~~~
luci.c:676:53: error: passing argument 3 of 'blobmsg_add_string' makes pointer from integer without a cast [-Werror=int-conversion]
  676 |                 blobmsg_add_string(&amp;blob, "master", basename(link));
      |                                                     ^~~~~~~~~~~~~~
      |                                                     |
      |                                                     int
...
cc1: all warnings being treated as errors

Link 1: https://git.musl-libc.org/cgit/musl/log/?qt=grep&amp;q=basename

Signed-off-by: Tony Ambardar &lt;itugrok@yahoo.com&gt;
</content>
</entry>
<entry>
<title>Merge pull request #6104 from dhewg/6g</title>
<updated>2023-02-07T13:05:17Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2023-02-07T13:05:17Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=2234d0c5dda0c6ba4cb323c46901a56fb25e83ce'/>
<id>urn:sha1:2234d0c5dda0c6ba4cb323c46901a56fb25e83ce</id>
<content type='text'>
luci-mod-network: enable configuring wifi ax networks on the 6G band</content>
</entry>
<entry>
<title>rpcd-mod-luci: fix reporting network device flags</title>
<updated>2023-02-07T09:09:42Z</updated>
<author>
<name>Jo-Philipp Wich</name>
</author>
<published>2023-02-06T14:46:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=a570e300061fae7250999c35e4e7215940bca82d'/>
<id>urn:sha1:a570e300061fae7250999c35e4e7215940bca82d</id>
<content type='text'>
Fix reporting of ceertain flag values larger than 255, such as IFF_PROMISC
by explicitly casting the bit test expression to a boolean result since
the implicit integer truncation to uint8_t will turn the `0x100` result of
a set IFF_PROMISC bit into just `0x0`.

Signed-off-by: Jo-Philipp Wich &lt;jo@mein.io&gt;
</content>
</entry>
<entry>
<title>rpcd-mod-luci: add "hwmodes_text" to the iwinfo info output</title>
<updated>2023-01-23T13:51:28Z</updated>
<author>
<name>Andre Heider</name>
</author>
<published>2022-11-23T11:23:08Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/luci/commit/?id=ed2ee96e4404f603539a19c2c6857a69173d15e3'/>
<id>urn:sha1:ed2ee96e4404f603539a19c2c6857a69173d15e3</id>
<content type='text'>
This is a preformatted string like "ac/ax/b/g/n" for presentation.

Signed-off-by: Andre Heider &lt;a.heider@gmail.com&gt;
</content>
</entry>
</feed>
