+ Lock BPF interfaces before handing them to chrooted process on
BSD.
+ Limit the number of neighbors for each port to 4 (per protocol).
+ + Force CDPv2 protocol with argument `-ccc`.
* Fixes:
+ Driver whitelisting is done before checking if an interface has
a lower interface in Linux.
.It Fl c
Enable the support of CDP protocol to deal with Cisco routers that do
not speak LLDP. If repeated, CDPv1 packets will be sent even when
-there is no CDP peer detected.
+there is no CDP peer detected. If repeated once again, CDPv2 packets
+will be sent even when there is no CDP peer detected.
.It Fl f
Enable the support of FDP protocol to deal with Foundry routers that do
not speak LLDP. If repeated, FDP packets will be sent even when there
found = 0;
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. */
- if (found && protos[i].enabled > 1)
- protos[i].enabled = 1;
- found = 1;
+ if (protos[i].enabled < 3) {
+ found = 1;
+ if (protos[i].enabled++ == 1)
+ break;
+ }
}
}
if (!found)