diff options
Diffstat (limited to 'dcmihandler.cpp')
-rw-r--r-- | dcmihandler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/dcmihandler.cpp b/dcmihandler.cpp index e1a44b5..15ab26c 100644 --- a/dcmihandler.cpp +++ b/dcmihandler.cpp @@ -2,7 +2,7 @@ #include "dcmihandler.hpp" -#include "net.hpp" +#include "user_channel/channel_layer.hpp" #include "utils.hpp" #include <host-ipmid/ipmid-api.h> @@ -247,8 +247,7 @@ bool getDHCPEnabled() { sdbusplus::bus::bus bus{ipmid_get_sd_bus_connection()}; - auto ethdevice = - ipmi::network::ChanneltoEthernet(ethernetDefaultChannelNum); + auto ethdevice = ipmi::getChannelName(ethernetDefaultChannelNum); auto ethernetObj = ipmi::getDbusObject(bus, ethernetIntf, networkRoot, ethdevice); auto service = ipmi::getService(bus, ethernetIntf, ethernetObj.first); |