From 790752d0b5e7941a2e368cee6e30df6695162752 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 18 Sep 2014 11:27:21 +0200 Subject: [PATCH] interfaces: only use physical interfaces to get a chassis ID --- src/daemon/interfaces.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/daemon/interfaces.c b/src/daemon/interfaces.c index d29eacc2..a52e99c2 100644 --- a/src/daemon/interfaces.c +++ b/src/daemon/interfaces.c @@ -288,8 +288,8 @@ interfaces_helper_vlan(struct lldpd *cfg, } #endif -/* Fill out chassis ID if not already done. This handler is special - because we will only handle interfaces that are already handled. */ +/* Fill out chassis ID if not already done. Only physical interfaces are + * considered. */ void interfaces_helper_chassis(struct lldpd *cfg, struct interfaces_device_list *interfaces) @@ -313,7 +313,7 @@ interfaces_helper_chassis(struct lldpd *cfg, return; /* We already have one */ TAILQ_FOREACH(iface, interfaces, next) { - if (iface->flags) continue; + if (!(iface->type & IFACE_PHYSICAL_T)) continue; if (cfg->g_config.c_cid_pattern && !pattern_match(iface->name, cfg->g_config.c_cid_pattern, 0)) continue; -- 2.39.5