face: process face_system.ether config section in EthernetFactory
This commit also fixes a potential memory access error in EthernetTransport.
refs #3904
Change-Id: I08296e7c6f1039b59b2859d277fc95326af34f52
diff --git a/daemon/face/face-system.hpp b/daemon/face/face-system.hpp
index f5d26d3..5696aa7 100644
--- a/daemon/face/face-system.hpp
+++ b/daemon/face/face-system.hpp
@@ -76,10 +76,10 @@
{
public:
const std::vector<NetworkInterfaceInfo>&
- listNics() const
+ listNetifs() const
{
- ///\todo get NIC list from NetworkMonitor
- return m_nicList;
+ ///\todo get netifs from NetworkMonitor
+ return m_netifs;
}
public:
@@ -88,7 +88,7 @@
///\todo add NetworkMonitor
private:
- std::vector<NetworkInterfaceInfo> m_nicList;
+ std::vector<NetworkInterfaceInfo> m_netifs;
friend class FaceSystem;
};
@@ -103,10 +103,6 @@
const std::vector<NetworkInterfaceInfo>& nicList);
void
- processSectionEther(const ConfigSection& configSection, bool isDryRun,
- const std::vector<NetworkInterfaceInfo>& nicList);
-
- void
processSectionWebSocket(const ConfigSection& configSection, bool isDryRun);
PUBLIC_WITH_TESTS_ELSE_PRIVATE: