From 13639120a13e7a73cb975565ac05cf0316c932a7 Mon Sep 17 00:00:00 2001 From: Praveen Chandran Date: Wed, 1 Dec 2021 09:35:03 -0800 Subject: [PATCH] Fix IPv6 local link address resolve issue with LWIP latest version (#12396) --- .github/workflows/examples-infineon.yaml | 1 + examples/lighting-app/p6/README.md | 4 ++-- src/inet/IPAddress.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/examples-infineon.yaml b/.github/workflows/examples-infineon.yaml index 3c709c3354aa0b..3a3d4309cffb04 100644 --- a/.github/workflows/examples-infineon.yaml +++ b/.github/workflows/examples-infineon.yaml @@ -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 diff --git a/examples/lighting-app/p6/README.md b/examples/lighting-app/p6/README.md index 3ef67d0988b81f..89c8c38b50b060 100644 --- a/examples/lighting-app/p6/README.md +++ b/examples/lighting-app/p6/README.md @@ -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 @@ -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`. diff --git a/src/inet/IPAddress.cpp b/src/inet/IPAddress.cpp index dc65dce50014bb..cbc1c8d4b08f74 100644 --- a/src/inet/IPAddress.cpp +++ b/src/inet/IPAddress.cpp @@ -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;