break;
case ARPHRD_LOOPBACK:
case ARPHRD_PPP:
- if (if_noconf) {
+ if (if_noconf && active) {
logdebugx("%s: ignoring due to interface type and"
" no config",
ifp->name);
!if_hasconf(ctx, spec.devname));
/* Don't allow some reserved interface names unless explicit. */
- if (if_noconf && if_ignore(ctx, spec.devname))
+ if (if_noconf && if_ignore(ctx, spec.devname)) {
+ logdebugx("%s: ignoring due to interface type and"
+ " no config", spec.devname);
active = IF_INACTIVE;
+ }
ifp = calloc(1, sizeof(*ifp));
if (ifp == NULL) {
case IFT_LOOP: /* FALLTHROUGH */
case IFT_PPP:
/* Don't allow unless explicit */
- if (if_noconf) {
+ if (if_noconf && active) {
logdebugx("%s: ignoring due to"
" interface type and"
" no config",