changeset 4715:f1ec148e8cd2 draft

DHCP: pretify error of invalid packet.
author Roy Marples <roy@marples.name>
date Fri, 13 Sep 2019 14:09:20 +0100
parents 6d4ade0ae7dc
children 6fcc9dcd67b0
files src/dhcp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dhcp.c	Fri Sep 13 12:45:52 2019 +0100
+++ b/src/dhcp.c	Fri Sep 13 14:09:20 2019 +0100
@@ -3354,7 +3354,7 @@
 			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;
 	}