]> git.ipfire.org Git - thirdparty/lldpd.git/commit
lldpd: limit the maximum of neighbors per port and per protocol
authorVincent Bernat <bernat@luffy.cx>
Sun, 31 Mar 2013 10:59:09 +0000 (12:59 +0200)
committerVincent Bernat <bernat@luffy.cx>
Sun, 31 Mar 2013 11:01:58 +0000 (13:01 +0200)
commit4258966022fc22c6e673b3de10f95ebc20aa8380
tree913c9cb635368071d4d312d6f59218e542d6d3a4
parent426ee11eefd43cef5f355c4cfe94dff6beeec761
lldpd: limit the maximum of neighbors per port and per protocol

lldpd memory can be exhausted by adding too many neighbors. Moreover,
the communication with lldpcli is limited to a fixed number of
neighbors (packets may not exceed 1 << 19 in size). Therefore, we put
a hard limit to the number of neighbors accepted for a given port, for
a given protocol.

The limit will be tunable in the future.

Feature suggested by Chris Yang. Closes #32.
NEWS
src/daemon/agent.c
src/daemon/lldpd.c
src/daemon/lldpd.h
src/lldpd-structs.h
tests/check_snmp.c