| /illumos-gate/usr/src/uts/common/inet/ip/ |
| H A D | ip2mac.c | 75 * fill up the ip2m response fields with inforamation from the nce. 142 * add a callback to the nce, so that the callback can be invoked 181 nce_t *nce = NULL; local 219 nce = nce_lookup_v6(ill, &sin6->sin6_addr); 223 &sin6->sin6_addr, 0, ND_UNCHANGED, &nce); 228 nce = nce_lookup_v4(ill, &sin->sin_addr.s_addr); 232 &sin->sin_addr.s_addr, 0, ND_UNCHANGED, &nce); 236 if (nce == NULL) { 240 ncec = nce->nce_common; 258 ncec = nce [all...] |
| H A D | ip6_output.c | 114 nce_t *nce; local 178 nce = ire_to_nce(ire, INADDR_ANY, &ip6h->ip6_dst); 179 if (nce == NULL) { 186 if (nce->nce_is_condemned) { 189 nce1 = ire_handle_condemned_nce(nce, ire, NULL, ip6h, B_TRUE); 190 nce_refrele(nce); 200 ip_drop_output("No nce", mp, ill); 205 nce = nce1; 222 ixa->ixa_nce = nce; 229 ifindex = nce 1140 ip_postfrag_multirt_v6(mblk_t *mp, nce_t *nce, iaflags_t ixaflags, uint_t pkt_len, uint32_t xmit_hint, zoneid_t szone, zoneid_t nolzid, uintptr_t *ixacookie) argument [all...] |
| H A D | ip6_input.c | 835 nce_t *nce; local 858 * finding a new nce below. 859 * Get, allocate, or update the nce. 867 nce = ire->ire_nce_cache; 868 if (nce == NULL) { 873 nce = ire->ire_nce_cache; 874 if (nce == NULL) { 883 nce_refhold(nce); 886 if (nce->nce_is_condemned) { 889 nce1 = ire_handle_condemned_nce(nce, ir 1073 ip_forward_xmit_v6(nce_t *nce, mblk_t *mp, ip6_t *ip6h, ip_recv_attr_t *ira, uint32_t mtu, uint32_t added_tx_len) argument [all...] |
| H A D | ip_ftable.c | 1042 * lookup an nce for the multicast case. 1073 nce_t *nce; local 1320 nce = ire->ire_nce_cache; 1321 if (nce == NULL || nce->nce_is_condemned) {
|
| H A D | ip_input.c | 843 nce_t *nce; local 867 * finding a new nce below. 868 * Get, allocate, or update the nce. 876 nce = ire->ire_nce_cache; 877 if (nce == NULL) { 882 nce = ire->ire_nce_cache; 883 if (nce == NULL) { 892 nce_refhold(nce); 895 if (nce->nce_is_condemned) { 898 nce1 = ire_handle_condemned_nce(nce, ir 1115 ip_forward_xmit_v4(nce_t *nce, ill_t *ill, mblk_t *mp, ipha_t *ipha, ip_recv_attr_t *ira, uint32_t mtu, uint32_t added_tx_len) argument 1312 nce_t *nce; local [all...] |
| H A D | ip_output.c | 139 nce_t *nce; local 226 nce = ixa->ixa_nce; 227 if (nce->nce_is_condemned) { 250 ip_drop_output("ipIfStatsOutDiscards - verify nce", 267 nce = ixa->ixa_nce; 271 * the new nce condemned. We catch that next time we 324 ill = nce->nce_ill; 448 nce_t *nce; local 485 * Don't look for an nce for reject or blackhole. 496 nce 532 nce_t *nce; local 813 nce_t *nce; local 2051 ip_postfrag_loopback(mblk_t *mp, nce_t *nce, iaflags_t ixaflags, uint_t pkt_len, zoneid_t nolzid) argument 2131 ip_postfrag_loopcheck(mblk_t *mp, nce_t *nce, iaflags_t ixaflags, uint_t pkt_len, uint32_t xmit_hint, zoneid_t szone, zoneid_t nolzid, uintptr_t *ixacookie) argument 2202 ip_postfrag_multirt_v4(mblk_t *mp, nce_t *nce, iaflags_t ixaflags, uint_t pkt_len, uint32_t xmit_hint, zoneid_t szone, zoneid_t nolzid, uintptr_t *ixacookie) argument [all...] |
| H A D | ip_attr.c | 125 uint_t ixm_ifindex; /* Used to find the nce */ 126 in6_addr_t ixm_nceaddr_v6; /* Used to find nce */ 231 nce_t *nce = ixa->ixa_nce; local 233 ASSERT(nce != NULL); 246 ixm->ixm_ifindex = nce->nce_ill->ill_phyint->phyint_ifindex; 247 ixm->ixm_nceaddr_v6 = nce->nce_addr; 329 nce_t *nce; local 361 * Find the nce. We don't load-spread (only lookup nce's on the ill) 362 * because we want to find the same nce a 1141 nce_t *nce; local [all...] |
| H A D | ip_mroute.c | 3133 * ip_xmit_attr_t in each vif thereby caching the ire/nce. 3144 nce_t *nce; local 3170 nce = arp_nce_init(ill, dst, ill->ill_net_type); 3172 nce = arp_nce_init(ill, dst, IRE_MULTICAST); 3174 if (nce == NULL) { 3176 ip_drop_output("tbf_send_packet - no nce", mp, ill); 3187 ip_forward_xmit_v4(nce, ill, mp, ipha, &iras, ill->ill_mc_mtu, 3191 nce_refrele(nce);
|
| H A D | ipmp.c | 924 nce_t *nce; local 953 &nce); 954 if (nce == NULL || !entp->ia_proxyarp) { 955 if (nce != NULL) 956 nce_refrele(nce); 959 ncec = nce->nce_common; 963 nce_refrele(nce); 1546 * to send data traffic will revalidate cached nce's. 2201 nce_t *nce; local 2219 while ((nce 2235 nce_t *nce, *nce_next; local [all...] |
| H A D | ip6_if.c | 1223 nce_t *nce = NULL; local 1303 &ipif->ipif_v6lcl_addr, flags, state, &nce); 1310 nce->nce_ipif_cnt++; 1316 nce->nce_ipif_cnt++; 1321 if (!NCE_MYADDR(nce->nce_common)) { 1323 * A leftover nce from before this address 1326 ncec_delete(nce->nce_common); 1327 nce_refrele(nce); 1328 nce = NULL; 1332 nce_refrele(nce); 2771 nce_t *nce; local [all...] |
| H A D | ip_arp.c | 287 * ready to update the ncec's hwaddr. The nce MUST NOT be on an 288 * under interface, because all dynamic nce's are created on the 825 nce_t *nce; local 1124 &src_paddr, 0, ND_STALE, &nce); 1132 src_ncec = nce->nce_common; 1146 nce_refrele(nce);
|
| H A D | ip_ire.c | 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; local 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); 2613 nce_t *nce; local 2858 nce_t *nce; local 3066 ire_handle_condemned_nce(nce_t *nce, ire_t *ire, ipha_t *ipha, ip6_t *ip6h, boolean_t fail_if_better) argument 3125 nce_t *nce; local 3325 nce_t *nce, *old_nce; local 3414 nce_t *nce; local [all...] |
| H A D | ip6.c | 1021 nce_t *nce; local 1087 gateway = dst; /* Add nce for dst */ 1127 gateway, ncec_flags, ND_STALE, &nce); 1130 nce_refrele(nce); 1137 nce_process(nce->nce_common, 1139 nce_refrele(nce); 1980 nce_t *nce; local 2129 /* Get an nce to cache. */ 2130 nce = ire_to_nce(ire, NULL, firsthop); 2131 if (nce 4104 ip_fragment_v6(mblk_t *mp, nce_t *nce, iaflags_t ixaflags, uint_t pkt_len, uint32_t max_frag, uint32_t xmit_hint, zoneid_t szone, zoneid_t nolzid, pfirepostfrag_t postfragfn, uintptr_t *ixa_cookie) argument [all...] |
| H A D | ip_ndp.c | 225 nce_t *nce; local 231 &nce); 235 *newnce = nce; 241 * triggers fastpath (if appropriate) and DAD on the newly added nce entry 245 nce_add_v6_postprocess(nce_t *nce) argument 247 ncec_t *ncec = nce->nce_common; 268 nce_fastpath_trigger(nce); 331 nce_t *nce, *upper_nce = NULL; local 354 nce = nce_lookup_addr(ill, addr); 355 if (nce 778 nce_t *nce; local 797 nce_t *nce; local 809 nce_t *nce; local 866 nce_t *nce; local 1015 nce_t *nce; local 2682 nce_t *nce = NULL; local 2868 nce_t *nce; local 2949 nce_t *nce; local 3060 nce_t *nce; local 3102 nce_t *nce; local 3135 nce_fastpath_trigger(nce_t *nce) argument 3159 nce_t *nce = NULL; local 3187 nce_t *nce; local 3204 nce_t *nce; local 3238 nce_delete_then_add(nce_t *nce) argument 3268 nce_fastpath_match_dlur(ill_t *ill, nce_t *nce, void *arg) argument 3321 nce_t *nce; local 3575 nce_t *nce, *upper_nce = NULL; local 3699 nce_t *nce; local 3722 nce_add_v4_postprocess(nce_t *nce) argument 3935 nce_t *nce; local 4004 ncec_reschedule(ill_t *ill, nce_t *nce, void *arg) argument 4331 nce_t *nce; local 4394 nce_t *nce = NULL; local 4707 nce_refhold(nce_t *nce) argument 4725 nce_refrele(nce_t *nce) argument 4739 nce_inactive(nce_t *nce) argument 4752 (char *), "nce", (void *), nce); local 4775 nce_add_impl(ill_t *ill, ncec_t *ncec, nce_t *nce, mblk_t *dlur_mp) argument 4783 (char *), "nce", (void *), nce); local 4799 nce_t *nce; local 4825 nce_delete(nce_t *nce) argument 4856 nce_t *nce = NULL; local 4885 nce_t *nce = NULL, *nce_next; local 4907 nce_t *nce, *nce_next; local [all...] |
| H A D | ip.c | 3375 nce_t *nce; local 3510 /* Get an nce to cache. */ 3511 nce = ire_to_nce(ire, firsthop, NULL); 3512 if (nce == NULL) { 3518 ixa->ixa_nce = nce; 3604 nce = ixa->ixa_nce; 3605 if (nce != NULL && nce->nce_is_condemned) { 3606 nce_refrele(nce); 3669 nce 3717 nce_t *nce; local 11623 ip_fragment_v4(mblk_t *mp_orig, nce_t *nce, iaflags_t ixaflags, uint_t pkt_len, uint32_t max_frag, uint32_t xmit_hint, zoneid_t szone, zoneid_t nolzid, pfirepostfrag_t postfragfn, uintptr_t *ixa_cookie) argument 12072 ip_xmit_attach_llhdr(mblk_t *mp, nce_t *nce) argument 14418 ip_xmit(mblk_t *mp, nce_t *nce, iaflags_t ixaflags, uint_t pkt_len, uint32_t xmit_hint, zoneid_t szone, zoneid_t nolzid, uintptr_t *ixacookie) argument [all...] |
| H A D | ip_if.c | 447 * Walk all CONNs that can have a reference on an ire or nce for this 1168 * Walk all CONNs that can have a reference on an ire or nce for this 1235 nce_t *nce; local 1238 nce = ire->ire_nce_cache; 1239 if (nce != NULL && nce->nce_ill == ill) 1242 nce = NULL; 1244 if (nce != NULL) 1245 nce_refrele(nce); 2735 * Based on the ILLF_ROUTER flag of an ill, make sure all local nce' 2744 nce_t *nce; local 8191 nce_t *nce; local 18360 nce_t *nce = NULL; local 18966 nce_t *nce; local [all...] |
| /illumos-gate/usr/src/test/os-tests/tests/spoof-ras/ |
| H A D | spoof-ras.c | 95 spoof_prepare_lla(struct nd_opt_lla *llap, struct lif_nd_req *nce, argument 103 nce->lnr_hdw_len + 7) / 8) * 8; 105 bcopy(&nce->lnr_hdw_addr, 106 &llap->nd_opt_lla_hdw_addr, nce->lnr_hdw_len); 169 spoof_bad_lla_optlen_test(int s, struct lif_nd_req *nce, sin6_t *multicast) argument 179 spoof_prepare_lla(&lla, nce, &iovs[1]); 232 spoof_bad_pi_optlen_test(int s, struct lif_nd_req *nce, sin6_t *multicast) argument 242 spoof_prepare_lla(&lla, nce, &iovs[1]); 303 spoof_bad_plen_test(int s, struct lif_nd_req *nce, sin6_t *multicast) argument 312 spoof_prepare_lla(&lla, nce, 334 spoof_link_local_test(int s, struct lif_nd_req *nce, sin6_t *multicast) argument 362 spoof_good_test(int s, struct lif_nd_req *nce, sin6_t *multicast) argument 519 spoof_run_test(spoof_test_f *func, int s, struct lif_nd_req *nce, sin6_t *multicast) argument 532 spoof_run_tests(int s, struct lif_nd_req *nce) argument [all...] |
| /illumos-gate/usr/src/cmd/mdb/common/modules/ip/ |
| H A D | ip.c | 728 nce_t nce; local 730 if (mdb_vread(&nce, sizeof (nce), wsp->walk_addr) == -1) { 731 mdb_warn("can't read nce at %p", wsp->walk_addr); 735 return (wsp->walk_callback(wsp->walk_addr, &nce, wsp->walk_cbdata)); 1441 nce(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) function 1443 nce_t nce; local 1477 (void) mdb_vread(&nce, sizeof (nce_t), addr); 1478 (void) nce_format(addr, &nce, &nce_cb); 1479 } else if (mdb_walk("nce", (mdb_walk_cb_ 2086 nce_l2_addr(const nce_t *nce, const ill_t *ill) argument [all...] |