odhcpd icon indicating copy to clipboard operation
odhcpd copied to clipboard

Missing host name identifier handling (1 bug & 1 enhancement)

Open EricLuehrsen opened this issue 8 years ago • 3 comments

Bug: DHCPv4 lease records should all be internally consistent but change with or without hostname. Compare when odhcpd receives DHCPv6 requests without FQDN option negotiation, it will put a "-" in the name field in the lease file. This is easy to parse with scripts including LuCI. However, DHCPv4 will skip the field altogether breaking the field-structure or field-count for scripts.

Enhancement: There should be an odhcpd general option to enable fill in unnamed leases. DHCPv4 use the MAC as in unknown-010203040506 and DHCPv6 use the last 64 bits of the DUID as in unknown-0102030405060708

EricLuehrsen avatar Dec 24 '16 17:12 EricLuehrsen

@EricLuehrsen The bug has been fixed in commit https://git.lede-project.org/?p=project/odhcpd.git;a=commit;h=700f5abbeff4e3dcc0f6b12d4883315e2cfb9b74

dedeckeh avatar Dec 31 '16 09:12 dedeckeh

@dedeckeh thanks for that. Is this fork maintained? Or is there some preference in where to post bugs to? (should I close issue or keep as reminder to maintain here?)

EricLuehrsen avatar Dec 31 '16 21:12 EricLuehrsen

@EricLuehrsen Lede uses a clone of this repo (https://git.lede-project.org/project/odhcp.git) as PR to fix issues remained open. Therefore I would advice to log issues and enhancement requests in the Lede issue tracker (https://bugs.lede-project.org/)

dedeckeh avatar Jan 01 '17 12:01 dedeckeh