eclipse-threadx / netxduo

Eclipse ThreadX - NetXDuo is an advanced, industrial-grade TCP/IP network stack designed specifically for deeply embedded real-time and IoT applications
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/netx-duo/index.md
MIT License
247 stars 136 forks source link

Server DUID parsing in DHCPV6 Advertise message fails #135

Closed prarthana-13 closed 1 year ago

prarthana-13 commented 2 years ago

image

In server duid its looking for duid time field which doesnt exist in the received packet. This variable is dhcpv6_ptr->nx_dhcpv6_client_duid.nx_duid_type = 1 and if (((index - 4) > length) || ((index - 4) < length)) check fails

We are using Netx version 5.7. Is this issue resolved in recent releases?

bo-ms commented 2 years ago

Hi @prarthana-13 thanks for asking. I guess you are using our DHCPv6 Client. We do fix some bugs in _nx_dhcpv6_process_server_duid() and our latest release is 6.2.0. Could you try the latest? https://github.com/azure-rtos/netxduo/blob/v6.2.0_rel/addons/dhcp/nxd_dhcpv6_client.c#L5728

bo-ms commented 1 year ago

Closing, feel free to open new issue.