]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP: pretify error of invalid packet.
authorRoy Marples <roy@marples.name>
Fri, 13 Sep 2019 13:09:20 +0000 (14:09 +0100)
committerRoy Marples <roy@marples.name>
Fri, 13 Sep 2019 13:09:20 +0000 (14:09 +0100)
src/dhcp.c

index 1fb2f4a10fcd848cb4b0d44ec7178f2f6d095d76..b93ef796304a5533012edd61ad3afb81305e42de 100644 (file)
@@ -3354,7 +3354,7 @@ dhcp_handlepacket(struct interface *ifp, uint8_t *data, size_t len)
                        errstr = "checksum failure";
                else
                        errstr = "invalid UDP packet";
-               logerrx("%s: %s from %s", errstr, ifp->name, inet_ntoa(from));
+               logerrx("%s: %s from %s", ifp->name, errstr, inet_ntoa(from));
                return;
        }