struct lldpd_chassis **newchassis, struct lldpd_port **newport)
{
struct lldpd_chassis *chassis;
- struct lldpd_port *port, *oport;
+ struct lldpd_port *port;
#ifdef ENABLE_DOT1
struct lldpd_vlan *lvlan = NULL, *lvlan_next;
#endif
int edp_port, edp_slot;
u_int8_t *pos, *pos_edp, *tlv;
u_int8_t version[4];
+#ifdef ENABLE_DOT1
struct in_addr address;
+ struct lldpd_port *oport;
+#endif
if ((chassis = calloc(1, sizeof(struct lldpd_chassis))) == NULL) {
LLOG_WARN("failed to allocate remote chassis");
extern char *if_indextoname (unsigned int __ifindex, char *__ifname) __THROW;
static int iface_is_bridge(struct lldpd *, const char *);
+#ifdef ENABLE_DOT1
static int iface_is_bridged_to(struct lldpd *,
const char *, const char *);
+#endif
static int iface_is_wireless(struct lldpd *, const char *);
static int iface_is_vlan(struct lldpd *, const char *);
static int iface_is_bond(struct lldpd *, const char *);
return 1;
}
+#ifdef ENABLE_DOT1
static int
old_iface_is_bridged_to(struct lldpd *cfg, const char *slave, const char *master)
{
close(f);
return 1;
}
+#endif
static int
iface_is_vlan(struct lldpd *cfg, const char *name)
iface_port_name_desc(hardware);
/* Fill additional info */
+#ifdef ENABLE_DOT3
port->p_aggregid = master;
+#endif
iface_macphy(hardware);
iface_mtu(cfg, hardware);
}