On ports not receiving anything, we send an LLDP packet only on the
first running port. Others get ignored. We reset "sent" flag to 0 for
each port.
{
struct lldpd_hardware *hardware;
struct lldpd_port *port;
- int i, sent = 0;
+ int i, sent;
cfg->g_lastsent = time(NULL);
TAILQ_FOREACH(hardware, &cfg->g_hardware, h_entries) {
if ((hardware->h_flags & IFF_RUNNING) == 0)
continue;
+ sent = 0;
for (i=0; cfg->g_protocols[i].mode != 0; i++) {
if (!cfg->g_protocols[i].enabled)
continue;