Skip to content

Commit

Permalink
Make bridge interface as Ethernet interface (#33236)
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.

Co-authored-by: Céleste Cote <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
  • Loading branch information
3 people authored Oct 24, 2024
1 parent ec58aef commit ec81c76
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 ec81c76

Please sign in to comment.