Lines Matching defs:ncec
8928 * as an index to the ncec itself.
11128 ip_snmp_get2_v6_media(ncec_t *ncec, iproutedata_t *ird)
11133 ill = ncec->ncec_ill;
11134 /* skip arpce entries, and loopback ncec entries */
11143 ntme.ipv6NetToMediaNetAddress = ncec->ncec_addr;
11145 if (ncec->ncec_lladdr != NULL) {
11146 bcopy(ncec->ncec_lladdr, ntme.ipv6NetToMediaPhysAddress.o_bytes,
11154 ntme.ipv6NetToMediaState = ncec->ncec_state;
11158 if (NCE_MYADDR(ncec)) {
11160 } else if (ncec->ncec_flags & NCE_F_PUBLISH) {
11162 } else if (ncec->ncec_flags & NCE_F_STATIC) {
11164 } else if (ncec->ncec_flags & (NCE_F_MCAST|NCE_F_BCAST)) {
11179 nce2ace(ncec_t *ncec)
11183 if (NCE_ISREACHABLE(ncec))
11185 if (ncec->ncec_flags & NCE_F_AUTHORITY)
11187 if (ncec->ncec_flags & NCE_F_PUBLISH)
11189 if ((ncec->ncec_flags & NCE_F_NONUD) != 0)
11191 if (NCE_MYADDR(ncec))
11193 if (ncec->ncec_flags & NCE_F_UNVERIFIED)
11195 if (ncec->ncec_flags & NCE_F_AUTHORITY)
11197 if (ncec->ncec_flags & NCE_F_DELAYED)
11206 ip_snmp_get2_v4_media(ncec_t *ncec, iproutedata_t *ird)
11213 ill = ncec->ncec_ill;
11214 if (ill->ill_isv6 || (ncec->ncec_flags & NCE_F_BCAST) ||
11221 if (NCE_MYADDR(ncec)) {
11223 } else if (ncec->ncec_flags & (NCE_F_MCAST|NCE_F_BCAST|NCE_F_PUBLISH)) {
11232 IN6_V4MAPPED_TO_IPADDR(&ncec->ncec_addr, ncec_addr);
11242 ntme.ipNetToMediaInfo.ntm_flags = nce2ace(ncec);
11247 if (!NCE_ISREACHABLE(ncec))
11250 if (ncec->ncec_lladdr != NULL) {
11251 bcopy(ncec->ncec_lladdr,
14393 ncec_t *ncec = nce->nce_common;
14491 switch (ncec->ncec_state) {
14559 * detection. Determine if the ncec is eligible for NUD.
14561 if (ncec->ncec_flags & NCE_F_NONUD)
14564 ASSERT(ncec->ncec_state != ND_INCOMPLETE);
14576 ncec->ncec_last = TICK_TO_MSEC(now);
14577 if (ncec->ncec_state != ND_REACHABLE) {
14578 mutex_enter(&ncec->ncec_lock);
14579 ncec->ncec_state = ND_REACHABLE;
14580 tid = ncec->ncec_timeout_id;
14581 ncec->ncec_timeout_id = 0;
14582 mutex_exit(&ncec->ncec_lock);
14589 &ncec->ncec_addr);
14595 delta = TICK_TO_MSEC(now) - ncec->ncec_last;
14600 mutex_enter(&ncec->ncec_lock);
14601 switch (ncec->ncec_state) {
14603 ASSERT((ncec->ncec_flags & NCE_F_NONUD) == 0);
14617 ncec->ncec_state = ND_DELAY;
14618 mutex_exit(&ncec->ncec_lock);
14619 nce_restart_timer(ncec,
14626 &ncec->ncec_addr);
14631 mutex_exit(&ncec->ncec_lock);
14636 * nce_timer has detected that this ncec
14638 * this ncec.
14640 * ncec before it was deleted and have
14642 * unreachable ncec.
14644 mutex_exit(&ncec->ncec_lock);
14648 mutex_exit(&ncec->ncec_lock);
14659 mutex_enter(&ncec->ncec_lock);
14660 if (NCE_ISREACHABLE(ncec)) {
14661 mutex_exit(&ncec->ncec_lock);
14665 nce_queue_mp(ncec, mp, is_probe);
14666 mutex_exit(&ncec->ncec_lock);
14668 (ncec_t *), ncec, (mblk_t *), mp);
14677 mutex_enter(&ncec->ncec_lock);
14678 if (NCE_ISREACHABLE(ncec)) {
14679 mutex_exit(&ncec->ncec_lock);
14682 nce_queue_mp(ncec, mp, is_probe);
14683 if (ncec->ncec_state == ND_INITIAL) {
14684 ncec->ncec_state = ND_INCOMPLETE;
14685 mutex_exit(&ncec->ncec_lock);
14690 ip_ndp_resolve(ncec);
14692 mutex_exit(&ncec->ncec_lock);