From ec81c76a4e0fe3ff4dd296f4499a939f53d601a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9leste=20Cote?= <34518035+celestecote21@users.noreply.github.com> Date: Thu, 24 Oct 2024 17:34:11 +0200 Subject: [PATCH] Make bridge interface as Ethernet interface (#33236) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some devices neither have WAN nor eth interface but use a bridge interface. Consider bridge interface as Ethernet, so these devices can use bridge interface. Co-authored-by: CĂ©leste Cote Co-authored-by: Andrei Litvin --- src/platform/Linux/ConnectivityUtils.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/platform/Linux/ConnectivityUtils.cpp b/src/platform/Linux/ConnectivityUtils.cpp index 8084ceca43b55a..1b12bf5edb3c0e 100644 --- a/src/platform/Linux/ConnectivityUtils.cpp +++ b/src/platform/Linux/ConnectivityUtils.cpp @@ -272,6 +272,10 @@ InterfaceTypeEnum ConnectivityUtils::GetInterfaceConnectionType(const char * ifn if (ioctl(sock, SIOCETHTOOL, &ifr) != -1) ret = InterfaceTypeEnum::kEthernet; } + else if (strncmp(ifname, "br", 2) == 0) + { + ret = InterfaceTypeEnum::kEthernet; + } close(sock);