Skip to content

Commit

Permalink
Fix IPv6 local link address resolve issue with LWIP latest version (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenCY authored and pull[bot] committed Mar 30, 2023
1 parent 02744d0 commit 5521041
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
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

0 comments on commit 5521041

Please sign in to comment.