From: Vincent Bernat Date: Tue, 24 Aug 2010 20:22:04 +0000 (+0200) Subject: Hide unwanted remote ports just after receiving information about them. X-Git-Tag: 0.5.2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b41bbd35d40d278b754fd32aeff9824566a399b;p=thirdparty%2Flldpd.git Hide unwanted remote ports just after receiving information about them. --- diff --git a/src/lldpd.c b/src/lldpd.c index 320a3fa4..1c4b8ef1 100644 --- a/src/lldpd.c +++ b/src/lldpd.c @@ -776,6 +776,7 @@ lldpd_recv_all(struct lldpd *cfg) } hardware->h_rx_cnt++; lldpd_decode(cfg, buffer, n, hardware); + lldpd_hide_all(cfg); /* Immediatly hide */ free(buffer); break; } @@ -988,7 +989,6 @@ lldpd_loop(struct lldpd *cfg) lldpd_update_localchassis(cfg); lldpd_send_all(cfg); lldpd_recv_all(cfg); - lldpd_hide_all(cfg); } static void