iface->flags = 0;
continue;
case 2:
- log_debug("interfaces", "whitelist %s", iface->name);
- iface->whitelisted = 1;
+ log_debug("interfaces", "whitelist %s (consider it as a physical interface)",
+ iface->name);
+ iface->type |= IFACE_PHYSICAL_T;
continue;
}
}
struct lldpd_hardware *hardware;
TAILQ_FOREACH(iface, interfaces, next) {
- if (!(iface->type & IFACE_PHYSICAL_T) && !iface->whitelisted) continue;
+ if (!(iface->type & IFACE_PHYSICAL_T)) continue;
if (!iface->flags) continue;
log_debug("interfaces", "%s is an acceptable ethernet device",
int mtu; /* MTU */
int type; /* Type (see IFACE_*_T) */
int vlanid; /* If a VLAN, what is the VLAN ID? */
- int whitelisted; /* If the interface has been whitelisted */
struct interfaces_device *lower; /* Lower interface (for a VLAN for example) */
struct interfaces_device *upper; /* Upper interface (for a bridge or a bond) */