From: Vincent Bernat Date: Tue, 30 Dec 2008 16:04:35 +0000 (+0100) Subject: Don't output any warning when bridge support is not enabled at all. X-Git-Tag: 0.3.1~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a15ddba7e50e9397d2b4bab2c3496184a3b0be3e;p=thirdparty%2Flldpd.git Don't output any warning when bridge support is not enabled at all. --- diff --git a/src/features.c b/src/features.c index de84ea8e..8b172f68 100644 --- a/src/features.c +++ b/src/features.c @@ -50,7 +50,8 @@ old_iface_is_bridge(struct lldpd *cfg, const char *name) unsigned long args[3] = { BRCTL_GET_BRIDGES, (unsigned long)ifindices, MAX_BRIDGES }; if ((num = ioctl(cfg->g_sock, SIOCGIFBR, args)) < 0) { - LLOG_WARN("unable to get available bridges"); + if (errno != ENOPKG) + LLOG_WARN("unable to get available bridges"); return 0; } for (i = 0; i < num; i++) {