]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Hide unwanted remote ports just after receiving information about them.
authorVincent Bernat <bernat@luffy.cx>
Tue, 24 Aug 2010 20:22:04 +0000 (22:22 +0200)
committerVincent Bernat <bernat@luffy.cx>
Tue, 24 Aug 2010 20:22:04 +0000 (22:22 +0200)
src/lldpd.c

index 320a3fa4776fe192559dd20291d0a76d30692a6c..1c4b8ef1a1e8f70740022f648dec037bf9ab2f1d 100644 (file)
@@ -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