{
struct ifaddrs *ifa;
struct lldpd_hardware *hardware;
- struct lldpd_port *port;
int master;
for (ifa = ifap; ifa != NULL; ifa = ifa->ifa_next) {
if (!iface_minimal_checks(cfg, ifa))
lldpd_port_cleanup(cfg, &hardware->h_lport, 0);
}
- port = &hardware->h_lport;
hardware->h_flags = ifa->ifa_flags;
ifa->ifa_flags = 0;
/* Fill additional info */
#ifdef ENABLE_DOT3
- port->p_aggregid = master;
+ hardware->h_lport.p_aggregid = master;
#endif
iface_macphy(hardware);
iface_mtu(cfg, hardware);
LLDP_TLV_MED_IV_MODEL = 10,
LLDP_TLV_MED_IV_ASSET = 11
};
+#endif
#define LLDPMED_CLASS_I 1
#define LLDPMED_CLASS_II 2
#define LLDPMED_CAP_MDI_PD 0x10
#define LLDPMED_CAP_IV 0x20
-#endif /* ENABLE_LLDPMED */
-
#endif /* _LLDP_H */