diff --git a/src/lib/dnssd/minimal_mdns/Server.h b/src/lib/dnssd/minimal_mdns/Server.h index d8f4f8084e7dd9..9bf44566a4ecf8 100644 --- a/src/lib/dnssd/minimal_mdns/Server.h +++ b/src/lib/dnssd/minimal_mdns/Server.h @@ -115,8 +115,8 @@ class Server chip::Inet::InterfaceId interfaceId = chip::Inet::InterfaceId::Null(), chip::Inet::IPAddressType addressType = chip::Inet::IPAddressType::kAny); - CHIP_ERROR SingleBroadcastImpl(chip::System::PacketBufferHandle && data, uint16_t port, - chip::Inet::InterfaceId, chip::Inet::IPAddressType); + CHIP_ERROR SingleBroadcastImpl(chip::System::PacketBufferHandle && data, uint16_t port, chip::Inet::InterfaceId, + chip::Inet::IPAddressType); static void OnUdpPacketReceived(chip::Inet::UDPEndPoint * endPoint, chip::System::PacketBufferHandle && buffer, const chip::Inet::IPPacketInfo * info); @@ -135,17 +135,16 @@ class Server chip::Inet::IPAddress mIpv4BroadcastAddress; #endif - struct BroadcastDestination { + struct BroadcastDestination + { chip::Inet::InterfaceId interfaceId; chip::Inet::IPAddressType addressType; - BroadcastDestination(chip::Inet::InterfaceId id, chip::Inet::IPAddressType type): interfaceId(id), addressType(type) {} - BroadcastDestination() : interfaceId(chip::Inet::InterfaceId::Null()), - addressType(chip::Inet::IPAddressType::kUnknown) {} - + BroadcastDestination(chip::Inet::InterfaceId id, chip::Inet::IPAddressType type) : interfaceId(id), addressType(type) {} + BroadcastDestination() : interfaceId(chip::Inet::InterfaceId::Null()), addressType(chip::Inet::IPAddressType::kUnknown) {} }; static constexpr size_t kMaxBroadcastDestinationCount = 20; - size_t mBroadcastDestinationCount = 0; + size_t mBroadcastDestinationCount = 0; std::array mBroadcastDestination; bool mIsInitialized = false;