iface != ifaces.end(); ++iface) {
Iface* iface_ptr = IfaceMgr::instance().getIface(iface->getName());
if (CfgMgr::instance().isActiveIface(iface->getName())) {
- iface_ptr->inactive_ = false;
+ iface_ptr->inactive4_ = false;
LOG_INFO(dhcp4_logger, DHCP4_ACTIVATE_INTERFACE)
.arg(iface->getFullName());
// interface is activated which is logged on the info level.
LOG_DEBUG(dhcp4_logger, DBG_DHCP4_BASIC,
DHCP4_DEACTIVATE_INTERFACE).arg(iface->getName());
- iface_ptr->inactive_ = true;
+ iface_ptr->inactive4_ = true;
}
}
iface != ifaces.end(); ++iface) {
Iface* iface_ptr = IfaceMgr::instance().getIface(iface->getName());
if (CfgMgr::instance().isActiveIface(iface->getName())) {
- iface_ptr->inactive_ = false;
+ iface_ptr->inactive4_ = false;
LOG_INFO(dhcp6_logger, DHCP6_ACTIVATE_INTERFACE)
.arg(iface->getFullName());
// interface is activated which is logged on the info level.
LOG_DEBUG(dhcp6_logger, DBG_DHCP6_BASIC,
DHCP6_DEACTIVATE_INTERFACE).arg(iface->getName());
- iface_ptr->inactive_ = true;
+ iface_ptr->inactive6_ = true;
}
}
:name_(name), ifindex_(ifindex), mac_len_(0), hardware_type_(0),
flag_loopback_(false), flag_up_(false), flag_running_(false),
flag_multicast_(false), flag_broadcast_(false), flags_(0),
- inactive_(false)
+ inactive4_(false), inactive6_(false)
{
memset(mac_, 0, sizeof(mac_));
}
if (iface->flag_loopback_ ||
!iface->flag_up_ ||
!iface->flag_running_,
- iface->inactive_) {
+ iface->inactive4_) {
continue;
}
if (iface->flag_loopback_ ||
!iface->flag_up_ ||
!iface->flag_running_,
- iface->inactive_) {
+ iface->inactive6_) {
continue;
}
/// it may mean different things on different OSes).
uint32_t flags_;
- /// Interface is inactive. This can be explicitly set to prevent Interface
- /// Manager from opening the socket on this interface.
- bool inactive_;
+ /// Indicates that IPv4 sockets should (true) or should not (false)
+ /// be opened on this interface.
+ bool inactive4_;
+
+ /// Indicates that IPv6 sockets should (true) or should not (false)
+ /// be opened on this interface.
+ bool inactive6_;
};
/// @brief Handles network interfaces, transmission and reception.