Lines Matching refs:ncec

90 	ncec_t 		ncec;
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;
746 if (mdb_vread(&ncec, sizeof (ncec),
748 mdb_warn("can't read ncec at %p", ncep->nce_common);
752 ncec.ncec_ipversion != nce_cb->nce_ipversion)
767 if (ncec.ncec_ipversion == IPV6_VERSION) {
1913 { "ncec", "?[-P v4 | v6]", "display Neighbor Cache Entry structures",
1914 ncec },
1966 { "ncec", "walk list of ncec structures for all stacks",
1968 { "ncec_stack", "walk list of ncec structures",
2056 ncec_l2_addr(const ncec_t *ncec, const ill_t *ill)
2061 if (ncec->ncec_lladdr == NULL) {
2071 (uintptr_t)ncec->ncec_lladdr) == -1) {
2073 ncec->ncec_lladdr);
2138 ncec(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv)
2140 ncec_t ncec;
2162 if (mdb_vread(&ncec, sizeof (ncec_t), addr) == -1) {
2163 mdb_warn("failed to read ncec at %p\n", addr);
2166 if (ipversion != 0 && ncec.ncec_ipversion != ipversion) {
2171 return (ncec_format(addr, &ncec, ipversion));
2177 if (mdb_walk("ncec", (mdb_walk_cb_t)ncec_cb, &id) == -1) {
2178 mdb_warn("failed to walk ncec table\n");
2186 ncec_format(uintptr_t addr, const ncec_t *ncec, int ipversion)
2204 if (mdb_vread(&ill, sizeof (ill), (uintptr_t)ncec->ncec_ill) == -1) {
2206 ncec->ncec_ill);
2214 ncec->ncec_flags, ncec_flags);
2216 if (ipversion != 0 && ncec->ncec_ipversion != ipversion)
2219 if (ncec->ncec_ipversion == IPV4_VERSION) {
2220 IN6_V4MAPPED_TO_INADDR(&ncec->ncec_addr, &nceaddr);
2224 addr, ncec_l2_addr(ncec, &ill),
2225 ncec_state(ncec->ncec_state),
2230 addr, ncec_l2_addr(ncec, &ill),
2231 ncec_state(ncec->ncec_state),
2233 ill_name, &ncec->ncec_addr);
2433 if (mdb_vread(&nw->ncec, sizeof (ncec_t), addr) == -1) {
2438 wsp->walk_addr = (uintptr_t)nw->ncec.ncec_next;
2456 ncec_t ncec;
2458 if (mdb_vread(&ncec, sizeof (ncec_t), addr) == -1) {
2459 mdb_warn("failed to read ncec at %p", addr);
2462 (void) ncec_format(addr, &ncec, id->ncec_ipversion);