]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Report correct interface type on failure.
authorRoy Marples <roy@marples.name>
Thu, 5 Mar 2015 19:34:00 +0000 (19:34 +0000)
committerRoy Marples <roy@marples.name>
Thu, 5 Mar 2015 19:34:00 +0000 (19:34 +0000)
Thanks to Guy Yur.

if.c

diff --git a/if.c b/if.c
index 36e77fb6f6a31fd8a6be441436c1229754b65d7a..7d1126cf4f5edad8a53c5d9cc9814a29d3170930 100644 (file)
--- a/if.c
+++ b/if.c
@@ -372,7 +372,7 @@ if_discover(struct dhcpcd_ctx *ctx, int argc, char * const *argv)
                                }
                                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;