# HG changeset patch # User Roy Marples # Date 1602077003 -3600 # Node ID d15a1aae65837e10515e828f8d86bbbc9809f7e2 # Parent 6a2da5651841cdd5b649b77e3150baabcc085f59 if: always log about unsupported interface types in debug diff -r 6a2da5651841 -r d15a1aae6583 src/if.c --- a/src/if.c Wed Oct 07 14:11:47 2020 +0100 +++ b/src/if.c Wed Oct 07 14:23:23 2020 +0100 @@ -422,11 +422,14 @@ } break; default: - if (if_noconf) - active = IF_INACTIVE; - if (active) - logwarnx("%s: unsupported interface type 0x%.2x", - ifp->name, ifp->hwtype); + if (active) { + if (if_noconf) + active = IF_INACTIVE; + i = active ? LOG_WARNING : LOG_DEBUG; + logmessage(i, "%s: unsupported" + " interface type 0x%.2x", + ifp->name, ifp->hw_type); + } break; } @@ -632,12 +635,14 @@ #endif default: /* Don't allow unless explicit */ - if (if_noconf) - active = IF_INACTIVE; - if (active) - logwarnx("%s: unsupported" + if (active) { + if (if_noconf) + active = IF_INACTIVE; + i = active ? LOG_WARNING : LOG_DEBUG; + logmessage(i, "%s: unsupported" " interface type 0x%.2x", ifp->name, sdl->sdl_type); + } /* Pretend it's ethernet */ ifp->hwtype = ARPHRD_ETHER; break;