/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | ip_ndp.c | 109 static void nce_cleanup_list(ncec_t *ncec); 110 static void nce_set_ll(ncec_t *ncec, uchar_t *ll_addr); 171 nce_dad(ncec_t *ncec, ill_t *src_ill, boolean_t send_probe) in nce_dad() argument 176 ASSERT(!(ncec->ncec_flags & NCE_F_MCAST)); in nce_dad() 177 ASSERT(!(ncec->ncec_flags & NCE_F_BCAST)); in nce_dad() 178 if (ncec->ncec_ipversion == IPV6_VERSION) { in nce_dad() 180 ncec->ncec_lladdr, ncec->ncec_lladdr_length, in nce_dad() 181 &ipv6_all_zeros, &ncec->ncec_addr, NDP_PROBE); in nce_dad() 186 dropped = arp_probe(ncec); in nce_dad() 189 probe_interval = nce_fuzz_interval(ncec->ncec_xmit_interval, in nce_dad() [all …]
|
H A D | ip2mac.c | 41 ncec_cb_dispatch(ncec_t *ncec) in ncec_cb_dispatch() argument 46 mutex_enter(&ncec->ncec_lock); in ncec_cb_dispatch() 47 if (list_is_empty(&ncec->ncec_cb)) { in ncec_cb_dispatch() 48 mutex_exit(&ncec->ncec_lock); in ncec_cb_dispatch() 51 ncec_ip2mac_response(&ip2m, ncec); in ncec_cb_dispatch() 52 ncec_cb_refhold_locked(ncec); in ncec_cb_dispatch() 61 ncec_cb = list_head(&ncec->ncec_cb); in ncec_cb_dispatch() 62 for (; ncec_cb != NULL; ncec_cb = list_next(&ncec->ncec_cb, ncec_cb)) { in ncec_cb_dispatch() 66 mutex_exit(&ncec->ncec_lock); in ncec_cb_dispatch() 68 mutex_enter(&ncec->ncec_lock); in ncec_cb_dispatch() [all …]
|
H A D | ip_arp.c | 221 ncec_t *ncec; in ip_nce_resolve_all() local 228 ncec = ncec_lookup_illgrp_v4(ill, src_paddr); in ip_nce_resolve_all() 229 *sncec = ncec; in ip_nce_resolve_all() 231 if (ncec == NULL) { in ip_nce_resolve_all() 236 mutex_enter(&ncec->ncec_lock); in ip_nce_resolve_all() 243 lladdr = ncec->ncec_lladdr; in ip_nce_resolve_all() 244 if (NCE_MYADDR(ncec) && hlen == ncec->ncec_ill->ill_phys_addr_length && in ip_nce_resolve_all() 246 mutex_exit(&ncec->ncec_lock); in ip_nce_resolve_all() 256 if (ncec->ncec_flags & NCE_F_UNVERIFIED) { in ip_nce_resolve_all() 257 mutex_exit(&ncec->ncec_lock); in ip_nce_resolve_all() [all …]
|
H A D | ipmp.c | 923 ncec_t *ncec; in ipmp_illgrp_refresh_arpent() local 959 ncec = nce->nce_common; in ipmp_illgrp_refresh_arpent() 960 mutex_enter(&ncec->ncec_lock); in ipmp_illgrp_refresh_arpent() 961 nce_update(ncec, ND_UNCHANGED, ill->ill_phys_addr); in ipmp_illgrp_refresh_arpent() 962 mutex_exit(&ncec->ncec_lock); in ipmp_illgrp_refresh_arpent() 2185 ipmp_ncec_delete_nonlocal(ncec_t *ncec, uchar_t *ill_arg) in ipmp_ncec_delete_nonlocal() argument 2187 if (!NCE_MYADDR(ncec) && ncec->ncec_ill == (ill_t *)ill_arg) in ipmp_ncec_delete_nonlocal() 2188 ncec_delete(ncec); in ipmp_ncec_delete_nonlocal() 2196 ipmp_ncec_delete_nce(ncec_t *ncec) in ipmp_ncec_delete_nce() argument 2198 ipmp_illgrp_t *illg = ncec->ncec_ill->ill_grp; in ipmp_ncec_delete_nce() [all …]
|
H A D | ip.c | 11163 ip_snmp_get2_v6_media(ncec_t *ncec, iproutedata_t *ird) in ip_snmp_get2_v6_media() argument 11168 ill = ncec->ncec_ill; in ip_snmp_get2_v6_media() 11178 ntme.ipv6NetToMediaNetAddress = ncec->ncec_addr; in ip_snmp_get2_v6_media() 11180 if (ncec->ncec_lladdr != NULL) { in ip_snmp_get2_v6_media() 11181 bcopy(ncec->ncec_lladdr, ntme.ipv6NetToMediaPhysAddress.o_bytes, in ip_snmp_get2_v6_media() 11189 ntme.ipv6NetToMediaState = ncec->ncec_state; in ip_snmp_get2_v6_media() 11193 if (NCE_MYADDR(ncec)) { in ip_snmp_get2_v6_media() 11195 } else if (ncec->ncec_flags & NCE_F_PUBLISH) { in ip_snmp_get2_v6_media() 11197 } else if (ncec->ncec_flags & NCE_F_STATIC) { in ip_snmp_get2_v6_media() 11199 } else if (ncec->ncec_flags & (NCE_F_MCAST|NCE_F_BCAST)) { in ip_snmp_get2_v6_media() [all …]
|
H A D | ip6.c | 1639 ncec_t *ncec = NULL; in icmp_send_redirect_v6() local 1670 ncec = ncec_lookup_illgrp_v6(ill, targetp); in icmp_send_redirect_v6() 1671 if (ncec != NULL && ncec->ncec_state != ND_INCOMPLETE && in icmp_send_redirect_v6() 1672 ncec->ncec_lladdr != NULL) { in icmp_send_redirect_v6() 1680 if (ncec != NULL) in icmp_send_redirect_v6() 1681 ncec_refrele(ncec); in icmp_send_redirect_v6() 1696 if (ncec != NULL && ll_opt_len != 0) { in icmp_send_redirect_v6() 1699 bcopy((char *)ncec->ncec_lladdr, &opt[1], in icmp_send_redirect_v6() 1702 if (ncec != NULL) in icmp_send_redirect_v6() 1703 ncec_refrele(ncec); in icmp_send_redirect_v6()
|
H A D | ip_output.c | 2057 ncec_t *ncec; in ip_postfrag_loopback() local 2059 ncec = nce->nce_common; in ip_postfrag_loopback() 2062 if (ncec->ncec_flags & NCE_F_BCAST) in ip_postfrag_loopback() 2064 else if (ncec->ncec_flags & NCE_F_MCAST) in ip_postfrag_loopback()
|
H A D | ip_if.c | 2743 ncec_t *ncec; in ill_set_nce_router_flags() local 2754 ncec = nce->nce_common; in ill_set_nce_router_flags() 2755 mutex_enter(&ncec->ncec_lock); in ill_set_nce_router_flags() 2757 ncec->ncec_flags |= NCE_F_ISROUTER; in ill_set_nce_router_flags() 2759 ncec->ncec_flags &= ~NCE_F_ISROUTER; in ill_set_nce_router_flags() 2760 mutex_exit(&ncec->ncec_lock); in ill_set_nce_router_flags() 8187 ncec_t *ncec = NULL; in ip_sioctl_arp() local 8291 ncec = nce->nce_common; in ip_sioctl_arp() 8299 if (ncec == NULL) { in ip_sioctl_arp() 8304 if (NCE_MYADDR(ncec)) { in ip_sioctl_arp() [all …]
|
/titanic_44/usr/src/uts/common/inet/ |
H A D | ip_ndp.h | 193 #define NCE_ISREACHABLE(ncec) \ argument 194 (((((ncec)->ncec_state) >= ND_REACHABLE) && \ 195 ((ncec)->ncec_state) <= ND_PROBE)) 197 #define NCE_ISCONDEMNED(ncec) ((ncec)->ncec_flags & NCE_F_CONDEMNED) argument 228 #define NCE_MYADDR(ncec) (((ncec)->ncec_flags & NCE_F_MYADDR) != 0) argument 235 #define NCE_PUBLISH(ncec) ((ncec->ncec_flags & NCE_F_PUBLISH) != 0) argument
|
/titanic_44/usr/src/cmd/mdb/common/modules/ip/ |
H A D | ip.c | 90 ncec_t ncec; member 225 static int ncec_format(uintptr_t addr, const ncec_t *ncec, int ipversion); 226 static int ncec(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv); 744 ncec_t ncec; in nce_format() local 746 if (mdb_vread(&ncec, sizeof (ncec), in nce_format() 752 ncec.ncec_ipversion != nce_cb->nce_ipversion) in nce_format() 767 if (ncec.ncec_ipversion == IPV6_VERSION) { in nce_format() 1914 ncec }, 2056 ncec_l2_addr(const ncec_t *ncec, const ill_t *ill) in ncec_l2_addr() argument 2061 if (ncec->ncec_lladdr == NULL) { in ncec_l2_addr() [all …]
|