Lines Matching defs:nce
2214 * Walk all CONNs that can have a reference on an ire, nce or dce.
2452 * exist in the nce list) the ncec_lladdr and ncec_state of the neighbor cache
2474 * The nce returned will be created such that the nce_ill == ill that
2475 * is passed in. Note that the nce itself may not have ncec_ill == ill
2482 nce_t *nce = NULL;
2520 ncec_flags, ND_UNCHANGED, &nce);
2523 ncec_flags, ND_UNCHANGED, &nce);
2534 if (((ncec_flags ^ nce->nce_common->ncec_flags) &
2537 ncec_delete(nce->nce_common);
2538 nce_refrele(nce);
2571 nce_delete(nce);
2574 nce_refrele(nce);
2585 ASSERT(nce->nce_ill == ill);
2588 return (nce);
2613 nce_t *nce;
2622 nce = ire->ire_nce_cache;
2625 if (nce != NULL)
2626 nce_refrele(nce);
2858 nce_t *nce;
2898 nce = ire->ire_nce_cache;
2901 if (nce != NULL)
2902 nce_refrele(nce);
3066 ire_handle_condemned_nce(nce_t *nce, ire_t *ire, ipha_t *ipha, ip6_t *ip6h,
3069 if (nce->nce_common->ncec_state == ND_UNREACHABLE) {
3085 nce = ire_to_nce(ire, ipha->ipha_dst, NULL);
3088 nce = ire_to_nce(ire, INADDR_ANY, &ip6h->ip6_dst);
3091 if (nce == NULL)
3093 if (nce->nce_is_condemned) {
3094 nce_refrele(nce);
3097 return (nce);
3125 nce_t *nce;
3161 nce = ire->ire_nce_cache;
3162 if (nce != NULL && nce->nce_is_condemned &&
3163 nce->nce_common->ncec_state == ND_UNREACHABLE)
3166 nce = NULL;
3168 if (nce != NULL)
3169 nce_refrele(nce);
3319 * ire_revalidate_nce() might return a condemned nce back, but we would then
3325 nce_t *nce, *old_nce;
3330 * in ire_nce_cache; when ire_to_nce is called we allocate the nce.
3348 nce = nce_lookup_v4(ire->ire_ill, &ire->ire_addr);
3350 nce = nce_lookup_v6(ire->ire_ill, &ire->ire_addr_v6);
3354 nce = arp_nce_init(nexthop->ire_ill, nexthop->ire_addr,
3357 nce = ndp_nce_init(nexthop->ire_ill,
3361 if (nce == NULL) {
3375 nce_refhold(nce);
3376 nexthop->ire_nce_cache = nce;
3389 nce_refhold(nce);
3390 ire->ire_nce_cache = nce;
3398 nce_refrele(nce);
3403 * Get a held nce for a given ire.
3414 nce_t *nce;
3423 nce = ire->ire_nce_cache;
3424 if (nce != NULL) {
3425 nce_refhold(nce);
3427 return (nce);
3437 nce = arp_nce_init(ire->ire_ill, v4nexthop,
3442 nce = ndp_nce_init(ire->ire_ill, v6nexthop,
3445 return (nce);