|
@@ -52,7 +52,7 @@ Iface::Iface(const std::string& name, int ifindex)
|
|
|
: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_));
|
|
|
}
|
|
@@ -297,7 +297,7 @@ bool IfaceMgr::openSockets4(const uint16_t port, const bool use_bcast) {
|
|
|
if (iface->flag_loopback_ ||
|
|
|
!iface->flag_up_ ||
|
|
|
!iface->flag_running_,
|
|
|
- iface->inactive_) {
|
|
|
+ iface->inactive4_) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
@@ -364,7 +364,7 @@ bool IfaceMgr::openSockets6(const uint16_t port) {
|
|
|
if (iface->flag_loopback_ ||
|
|
|
!iface->flag_up_ ||
|
|
|
!iface->flag_running_,
|
|
|
- iface->inactive_) {
|
|
|
+ iface->inactive6_) {
|
|
|
continue;
|
|
|
}
|
|
|
|