]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: fix debug message when discarding a received frame
authorVincent Bernat <bernat@luffy.cx>
Sat, 22 Dec 2012 19:23:07 +0000 (20:23 +0100)
committerVincent Bernat <bernat@luffy.cx>
Sat, 22 Dec 2012 19:25:59 +0000 (20:25 +0100)
There are legit reasons to discard a received frame. This happens on
bond interfaces. Fix the message to just say we have discarded a
frame, not we are not able to receive something.

src/daemon/lldpd.c

index 7832dbf9d841b94ef31664bf7a616a57b542425d..494d416bb05a555876a9d28481359c7a391f7f37 100644 (file)
@@ -705,7 +705,7 @@ lldpd_recv(struct lldpd *cfg, struct lldpd_hardware *hardware, int fd)
        if ((n = hardware->h_ops->recv(cfg, hardware,
                    fd, buffer,
                    hardware->h_mtu)) == -1) {
-               log_debug("receive", "unable to receive a frame on %s",
+               log_debug("receive", "discard frame received on %s",
                    hardware->h_ifname);
                free(buffer);
                return;