Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IPv6 local link address resolve issue with LWIP latest version #12396

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/examples-infineon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,4 @@ jobs:
path: |
out/infineon-p6-lock/p6-default-lock-app-sizes.json
out/infineon-p6-all-clusters/p6-default-all-clusters-app-sizes.json
out/infineon-p6-light/p6-default-light-app-sizes.json
4 changes: 2 additions & 2 deletions examples/lighting-app/p6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Once P6 is up and running, we need to set up a device controller on Raspberry Pi

- Resolve DNS-SD name and update address of the node in the device controller.

- chip-device-ctrl > resolve 0 1234
- chip-device-ctrl > resolve 1234

<a name="Notes"></a>

Expand Down Expand Up @@ -153,4 +153,4 @@ commands. These power cycle the BlueTooth hardware and disable BR/EDR mode.
This button is configured with `APP_LIGHT_BUTTON` in `include/AppConfig.h`.
Press `USER_BTN1` on the board to toggle between Light ON and OFF states.
Light ON and OFF can be observed with 'LED9' on the board. This LED is
configured with `LIGHT_STATE_LED` in `include/AppConfig.h`.
configured with `LIGHT_LED` in `include/AppConfig.h`.
2 changes: 1 addition & 1 deletion src/inet/IPAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ lwip_ip_addr_type IPAddress::ToLwIPAddrType(IPAddressType typ)

ip6_addr_t IPAddress::ToIPv6() const
{
ip6_addr_t ipAddr;
ip6_addr_t ipAddr = { 0 };
static_assert(sizeof(ipAddr.addr) == sizeof(Addr), "ip6_addr_t size mismatch");
memcpy(&ipAddr.addr, Addr, sizeof(ipAddr.addr));
return ipAddr;
Expand Down