Skip to content

Commit

Permalink
Fix IPAddress Type mismatch between echo-requester and echo-responder.
Browse files Browse the repository at this point in the history
When using TCP, the echo-server was listening over IPv4 while the
echo-requester was getting configured for IPv6.

Normalize both sides to always use IPv6 over both TCP or MRP.
  • Loading branch information
pidarped committed Sep 22, 2023
1 parent 59d2b7e commit 678f5ed
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/messaging/tests/echo/echo_responder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ int main(int argc, char * argv[])
if (useTCP)
{
err = gTCPManager.Init(chip::Transport::TcpListenParameters(chip::DeviceLayer::TCPEndPointManager())
#if INET_CONFIG_ENABLE_IPV4
.SetAddressType(chip::Inet::IPAddressType::kIPv4)
#else
.SetAddressType(chip::Inet::IPAddressType::kIPv6)
#endif
);
SuccessOrExit(err);

Expand Down

0 comments on commit 678f5ed

Please sign in to comment.