+lldpd (0.6.2)
+ * Features:
+ + Allow to disable LLDP protocol (with `-ll`). In this case, the
+ first enabled protocol will be used when no neighbor is detected.
+
lldpd (0.6.1)
* Features:
+ Provide liblldpctl.so, a library to interface with lldpd. The
Force to send LLDP packets even when there is no LLDP peer detected
but there is a peer speaking another protocol detected. By default,
LLDP packets are sent when there is a peer speaking LLDP detected or
-when there is no peer at all.
+when there is no peer at all. If repeated, LLDP is disabled.
.It Fl r
Receive-only mode. With this switch,
.Nm
}
}
- if (!sent)
- /* Nothing was sent for this port, let's speak LLDP */
- cfg->g_protocols[0].send(cfg,
- hardware);
+ if (!sent) {
+ /* Nothing was sent for this port, let's speak the first
+ * available protocol. */
+ for (i = 0; cfg->g_protocols[i].mode != 0; i++) {
+ if (!cfg->g_protocols[i].enabled) continue;
+ cfg->g_protocols[i].send(cfg,
+ hardware);
+ break;
+ }
+ if (cfg->g_protocols[i].mode == 0)
+ LLOG_WARNX("no protocol enabled, dunno what to send");
+ }
}
}
for (i=0; protos[i].mode != 0; i++) {
if (ch == protos[i].arg) {
protos[i].enabled++;
+ protos[i].enabled %= 3;
/* When an argument enable
several protocols, only the
first one can be forced. */