Since Middleware v7.9.0 have implemented a function netIF_SetOption() that can setup IPv6 link local address.
I tried to use the code below, but I got an invalid parameter status. So how to set IPv6 link-local address? Thank you.
uint8_t ip6linklocal[NET_ADDR_IP6_LEN]; // Link-local address netIP_aton ("fe80::10b3:d5ff:feca:bca6", NET_ADDR_IP6, &ip6linklocal[0]); status=netIF_SetOption(NET_IF_CLASS_ETH | 0, netIF_OptionIP6_LinkLocalAddress, &ip6linklocal[0], sizeof(ip6linklocal));
The link-local address is generated and maintained in the network library. The address is created using the EUI-64 method from the MAC address. It is used only for communication on the link and can not be changed. However, it is possible to read the Local Link address from your code using netIF_GetOption.