rpcd-mod-luci: Fix parsing of DUID-LLT's in duid2ea 4837/head
authorNiels Widger <niels@qacafe.com>
Thu, 25 Feb 2021 20:31:00 +0000 (15:31 -0500)
committerGitHub <noreply@github.com>
Thu, 25 Feb 2021 20:31:00 +0000 (15:31 -0500)
commit8920a2bf71e544fada3de824126a5c8f1c596b63
tree66c68d98267fee3d83088759cd22a9a26aa00484
parent5e4f36b6cf54d1f91ee653dfe628c40aa59905e9
rpcd-mod-luci: Fix parsing of DUID-LLT's in duid2ea

Fix parsing of DUID-LLT's in duid2ea.  Unlike DUID-LL's, DUID-LLT's have a 32-bit time field between the hardware type and link-layer address fields, see RFC 3315 Sections 9.2 and 9.4:

https://tools.ietf.org/html/rfc3315#section-9.2
https://tools.ietf.org/html/rfc3315#section-9.4

therefore, the link-layer address starts at offset 16 instead of 8.

Signed-off-by: Niels Widger <niels@qacafe.com>
libs/rpcd-mod-luci/src/luci.c