From 8a771868ceb838affd1a9adbad42d87d4614482e Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 2 Apr 2013 20:26:30 +0200 Subject: [PATCH] lldpd: really accepts only 4 neighbors --- src/daemon/lldpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index 303ee52f..bbeafc39 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -449,7 +449,7 @@ lldpd_decode(struct lldpd *cfg, char *frame, int s, } /* Do we have room for a new MSAP? */ if (!oport && cfg->g_config.c_max_neighbors && - count > cfg->g_config.c_max_neighbors) { + count > cfg->g_config.c_max_neighbors - 1) { log_info("decode", "too many neighbors for port %s, drop this new one", hardware->h_ifname); -- 2.39.5