From: Vincent Bernat Date: Sat, 22 Aug 2015 21:09:42 +0000 (+0200) Subject: interfaces: clean neighbors if an interface goes down X-Git-Tag: 0.8.0~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7f0877f05daa09b6a0a80f7bf934e03d5052698e;p=thirdparty%2Flldpd.git interfaces: clean neighbors if an interface goes down As we don't delete down interfaces anymore, we must at least clear neighbors correctly. --- diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index c47209de..59fa4569 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -413,7 +413,8 @@ lldpd_cleanup(struct lldpd *cfg) lldpd_remote_cleanup(hardware, notify_clients_deletion, 1); lldpd_hardware_cleanup(cfg, hardware); } else - lldpd_remote_cleanup(hardware, notify_clients_deletion, 0); + lldpd_remote_cleanup(hardware, notify_clients_deletion, + !(hardware->h_flags & IFF_RUNNING)); } log_debug("localchassis", "cleanup all chassis");