diff options
Diffstat (limited to 'server/NetworkController.cpp')
| -rw-r--r-- | server/NetworkController.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/server/NetworkController.cpp b/server/NetworkController.cpp index be637cb2..7895bbbb 100644 --- a/server/NetworkController.cpp +++ b/server/NetworkController.cpp @@ -147,14 +147,12 @@ NetworkController::NetworkController() : // TODO: perhaps only remove the clsact on the interface which is added by // RouteController::addInterfaceToPhysicalNetwork. Currently, the netd only // attach the clsact to the interface for the physical network. - if (bpf::isBpfSupported()) { - const auto& ifaces = InterfaceController::getIfaceNames(); - if (isOk(ifaces)) { - for (const std::string& iface : ifaces.value()) { - if (int ifIndex = if_nametoindex(iface.c_str())) { - // Ignore the error because the interface might not have a clsact. - tcQdiscDelDevClsact(ifIndex); - } + const auto& ifaces = InterfaceController::getIfaceNames(); + if (isOk(ifaces)) { + for (const std::string& iface : ifaces.value()) { + if (int ifIndex = if_nametoindex(iface.c_str())) { + // Ignore the error because the interface might not have a clsact. + tcQdiscDelDevClsact(ifIndex); } } } |
