changeset 2993:3667db0785f9 draft

Report correct interface type on failure. Thanks to Guy Yur.
author Roy Marples <roy@marples.name>
date Thu, 05 Mar 2015 19:34:00 +0000
parents 1c2bfb96fd3f
children 19fabfe71766
files if.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/if.c	Thu Mar 05 17:40:56 2015 +0000
+++ b/if.c	Thu Mar 05 19:34:00 2015 +0000
@@ -372,7 +372,7 @@
 				}
 				syslog(LOG_WARNING,
 				    "%s: unsupported interface type %.2x",
-				    ifp->name, ifp->family);
+				    ifp->name, sdl->sdl_type);
 				/* Pretend it's ethernet */
 				ifp->family = ARPHRD_ETHER;
 				break;