+ Allow to filter debug logs using tokens. Add more debug logs.
+ lldpctl can now output JSON.
+ Use netlink to gather interface information.
+ + Don't use ioctl for bridges anymore. The configure option
+ `--enable-oldies` allow to reenable their uses for systems not
+ supporting sysfs.
lldpd (0.6.1)
* Features:
lldp_ARG_ENABLE([dot1], [Dot1 extension (VLAN stuff)], [yes])
lldp_ARG_ENABLE([dot3], [Dot3 extension (PHY stuff)], [yes])
+# Oldies
+lldp_ARG_ENABLE([oldies], [Compatibility with kernel older than 2.6.18], [no])
+
#######################
# Output results
AM_CONDITIONAL([HAVE_CHECK], [test x"$have_check" = x"yes"])
DOT3...........: $enable_dot3
XML output.....: ${with_xml-no}
JSON output....: ${with_json-no}
+ Oldies support.: $enable_oldies
---------------------------------------------
Check the above options and compile with:
return NULL;
}
+#ifdef ENABLE_OLDIES
static int
iface_indextoname(struct netlink_interface_list *interfaces,
int index, char *name)
strncpy(name, iface->name, IFNAMSIZ);
return 0;
}
+#endif
static int
old_iface_is_bridge(struct lldpd *cfg,
struct netlink_interface_list *interfaces,
struct netlink_interface *iface)
{
+#ifdef ENABLE_OLDIES
int ifindices[MAX_BRIDGES];
char ifname[IFNAMSIZ];
int num, i;
else if (strncmp(iface->name, ifname, IFNAMSIZ) == 0)
return 1;
}
+#endif
return 0;
}
struct netlink_interface *slave,
struct netlink_interface *master)
{
+#ifdef ENABLE_OLDIES
int j;
int ifptindices[MAX_PORTS];
unsigned long args2[4] = { BRCTL_GET_PORT_LIST,
if (ifptindices[j] == slave->index)
return 1;
}
-
+#endif
return 0;
}