]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
Don't output any warning when bridge support is not enabled at all.
authorVincent Bernat <vbernat.ext@orange-ftgroup.com>
Tue, 30 Dec 2008 16:04:35 +0000 (17:04 +0100)
committerVincent Bernat <vbernat.ext@orange-ftgroup.com>
Tue, 30 Dec 2008 16:04:35 +0000 (17:04 +0100)
src/features.c

index de84ea8ee2f8814ff8290b9e585a0dfa826135f0..8b172f6864013ec5331d421091f916796aeec5e3 100644 (file)
@@ -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++) {