lldpd (0.8.0)
* Change:
+ + Don't discard down interfaces. Notably, this enables us to keep
+ their specific configuration if any.
+ For Linux, switch to libnl3. Be aware of the licensing issues in
case of static linking.
+ Introduce the notion of default local port. New interfaces will
struct interfaces_device *device = NULL;
if (!ifaddr->ifa_name) return;
if (!ifaddr->ifa_addr) return;
- if (!((ifaddr->ifa_flags & IFF_UP) && (ifaddr->ifa_flags & IFF_RUNNING))) {
- log_debug("interfaces",
- "skip %s: down", ifaddr->ifa_name);
- return;
- }
switch (ifaddr->ifa_addr->sa_family) {
case AF_LINK:
log_debug("interfaces",
return;
}
flags = lifrl.lifr_flags;
- if (!((flags & IFF_UP) && (flags & IFF_RUNNING))) {
- log_debug("interfaces",
- "skip %s: down", lifrl.lifr_name);
- return;
- }
/* Index */
if (ioctl(cfg->g_sock, SIOCGLIFINDEX, (caddr_t)&lifrl) < 0) {
}
unsigned int flags = rtnl_link_get_flags(link);
- if (!((flags & IFF_UP) && (flags & IFF_RUNNING))) {
- log_debug("netlink", "skip down interface %s", name);
- return NULL;
- }
if (rtnl_link_get_arptype(link) != ARPHRD_ETHER) {
log_debug("netlink", "skip non Ethernet interface %s", name);
return NULL;