Lines Matching refs:ifn
907 struct interface *ifp = arg, *ifn; in ipv4_applyaddr()
929 TAILQ_FOREACH(ifn, ifp->ctx->ifaces, next) { in ipv4_applyaddr()
930 if (ifn == ifp || in ipv4_applyaddr()
931 strcmp(ifn->name, ifp->name) == 0) in ipv4_applyaddr()
933 nstate = D_STATE(ifn); in ipv4_applyaddr()
937 if (ifn->options->options & in ipv4_applyaddr()
940 dhcp_bind(ifn, NULL); in ipv4_applyaddr()
942 ipv4_addaddr(ifn, in ipv4_applyaddr()
959 TAILQ_FOREACH(ifn, ifp->ctx->ifaces, next) { in ipv4_applyaddr()
960 if (ifn == ifp || strcmp(ifn->name, ifp->name) == 0) in ipv4_applyaddr()
962 nstate = D_STATE(ifn); in ipv4_applyaddr()
966 if (ifn->metric <= ifp->metric) { in ipv4_applyaddr()
971 ifn->name); in ipv4_applyaddr()
977 ifn->name, in ipv4_applyaddr()
980 ipv4_deladdr(ifn, &nstate->addr, &nstate->net); in ipv4_applyaddr()
987 if (ifn == NULL) { in ipv4_applyaddr()
988 TAILQ_FOREACH(ifn, ifp->ctx->ifaces, next) { in ipv4_applyaddr()
989 if (ifn == ifp || strcmp(ifn->name, ifp->name) == 0) in ipv4_applyaddr()
991 ap = ipv4_iffindaddr(ifn, &lease->addr, NULL); in ipv4_applyaddr()
993 ipv4_deladdr(ifn, &ap->addr, &ap->net); in ipv4_applyaddr()