tweak Lua script argument passing and add --dhcp-luascript sectino to manpage.
diff --git a/src/helper.c b/src/helper.c
index a465bcf..135111d 100644
--- a/src/helper.c
+++ b/src/helper.c
@@ -298,8 +298,10 @@
if (is6)
{
+ lua_pushstring(lua, daemon->dhcp_buff);
+ lua_setfield(lua, -2, "client_duid");
lua_pushstring(lua, daemon->packet);
- lua_setfield(lua, -2, "duid");
+ lua_setfield(lua, -2, "server_duid");
lua_pushstring(lua, daemon->dhcp_buff3);
lua_setfield(lua, -2, "iaid");
}
@@ -440,7 +442,7 @@
if (is6)
{
my_setenv("DNSMASQ_IAID", daemon->dhcp_buff3, &err);
- my_setenv("DNSMASQ_DUID", daemon->packet, &err);
+ my_setenv("DNSMASQ_SERVER_DUID", daemon->packet, &err);
}
if (!is6 && data.clid_len != 0)