Skip to content

Commit

Permalink
Make bridge interface as Ethernet interface
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
celeste-rtone committed Apr 30, 2024
1 parent ffaeaa1 commit f7187be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform/Linux/ConnectivityUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f7187be

Please sign in to comment.