Lines Matching defs:ipif

248  * Lookups of an ipif or ill by a thread return a refheld ipif / ill.
250 * In addition ipif's and ill's referenced by the ire are also indirectly
251 * refheld. Thus no ipif or ill can vanish as long as an ipif is refheld
253 * address of an ipif has to go through the ipsq_t. This ensures that only
254 * one such exclusive operation proceeds at any time on the ipif. It then
256 * associated with this ipif to come down to zero. The address is changed
257 * only after the ipif has been quiesced. Then the ipif is brought up again.
276 * - ill_lock protects fields of the ill and ipif. Details in ip.h
283 * Insertion/deletion of an ill in the system, insertion/deletion of an ipif
304 * This lock is held in ipif_up_done and the ipif is marked IPIF_UP and the
330 * To add or delete an ipif from the list of ipifs hanging off the ill,
1335 ipif_t *ipif;
1557 * Need the ipif with the mask be the same as the source
1559 * ipif. For multicast/broadcast we only handle onlink
1560 * senders, and use the source address to pick an ipif.
1562 ipif = ipif_lookup_addr(ipha->ipha_dst, ill, zoneid, ipst);
1563 if (ipif == NULL) {
1565 ipif = ipif_lookup_remote(ill, ipha->ipha_src, zoneid);
1566 if (ipif == NULL) {
1572 bcopy(&ipif->ipif_net_mask, &icmph[1], IP_ADDR_LEN);
1573 ipif_refrele(ipif);
3286 ipif_t *ipif;
3297 ipif = ipif_lookup_addr(src_addr, NULL, zoneid, ipst);
3298 if (ipif == NULL)
3302 if (ipif->ipif_flags & (IPIF_NOLOCAL | IPIF_ANYCAST)) {
3303 ipif_refrele(ipif);
3306 ipif_refrele(ipif);
3993 ipif_t *ipif;
4024 for (ipif = ill->ill_ipif; ipif != NULL;
4025 ipif = ipif->ipif_next) {
4026 ipif->ipif_state_flags |= IPIF_CONDEMNED;
8199 ipif_t *ipif = NULL;
8215 ipif = ipsq->ipsq_xop->ipx_pending_ipif;
8221 if (ipif != NULL && ipif->ipif_ill != ill)
8319 (void) ipif_down(ipif, NULL, NULL);
8457 (void) ipif_resolver_up(ipif, Res_act_initial);
8458 if ((err = ipif_ndp_up(ipif, B_TRUE)) == 0)
8459 err = ipif_up_done_v6(ipif);
8469 success = ipsq_pending_mp_add(connp, ipif, q, mp1, 0);
8474 err = ipif_resolver_up(ipif, Res_act_initial);
8488 (void) ipif_resolver_up(ipif, Res_act_initial);
8489 err = ipif_up_done(ipif);
8501 * If we have a moved ipif to bring up, and everything has
8510 ipif = ill->ill_move_ipif;
8512 err = ipif_up(ipif, q, mp1);
10004 ipif_t *ipif;
10029 for (ipif = ill->ill_ipif; ipif != NULL;
10030 ipif = ipif->ipif_next) {
10031 if (ipif->ipif_zoneid != zoneid &&
10032 ipif->ipif_zoneid != ALL_ZONES)
10035 mae.ipAdEntInfo.ae_ibcnt = ipif->ipif_ib_pkt_count;
10036 if (ipif->ipif_ire_local != NULL) {
10038 ipif->ipif_ire_local->ire_ib_pkt_count;
10043 ipif_get_name(ipif, mae.ipAdEntIfIndex.o_bytes,
10047 mae.ipAdEntAddr = ipif->ipif_lcl_addr;
10048 mae.ipAdEntNetMask = ipif->ipif_net_mask;
10049 mae.ipAdEntInfo.ae_subnet = ipif->ipif_subnet;
10051 ip_mask_to_plen(ipif->ipif_net_mask);
10052 mae.ipAdEntInfo.ae_src_addr = ipif->ipif_lcl_addr;
10055 !(bitval & ipif->ipif_brd_addr);
10060 mae.ipAdEntInfo.ae_mtu = ipif->ipif_ill->ill_mtu;
10061 mae.ipAdEntInfo.ae_metric = ipif->ipif_ill->ill_metric;
10063 ipif->ipif_brd_addr;
10065 ipif->ipif_pp_dst_addr;
10066 mae.ipAdEntInfo.ae_flags = ipif->ipif_flags |
10096 ipif_t *ipif;
10121 for (ipif = ill->ill_ipif; ipif != NULL;
10122 ipif = ipif->ipif_next) {
10123 if (ipif->ipif_zoneid != zoneid &&
10124 ipif->ipif_zoneid != ALL_ZONES)
10127 mae6.ipv6AddrInfo.ae_ibcnt = ipif->ipif_ib_pkt_count;
10128 if (ipif->ipif_ire_local != NULL) {
10130 ipif->ipif_ire_local->ire_ib_pkt_count;
10135 ipif_get_name(ipif, mae6.ipv6AddrIfIndex.o_bytes,
10139 mae6.ipv6AddrAddress = ipif->ipif_v6lcl_addr;
10141 ip_mask_to_plen_v6(&ipif->ipif_v6net_mask);
10142 mae6.ipv6AddrInfo.ae_subnet = ipif->ipif_v6subnet;
10145 mae6.ipv6AddrInfo.ae_src_addr = ipif->ipif_v6lcl_addr;
10148 if (ipif->ipif_flags & IPIF_ADDRCONF)
10153 if (ipif->ipif_flags & IPIF_ANYCAST)
10162 if (ipif->ipif_flags & IPIF_NOLOCAL)
10164 else if (ipif->ipif_flags & IPIF_DEPRECATED)
10168 mae6.ipv6AddrInfo.ae_mtu = ipif->ipif_ill->ill_mtu;
10170 ipif->ipif_ill->ill_metric;
10172 ipif->ipif_v6pp_dst_addr;
10173 mae6.ipv6AddrInfo.ae_flags = ipif->ipif_flags |
10205 ipif_t *ipif;
10237 /* Is there an ipif for ilm_ifaddr? */
10238 for (ipif = ill->ill_ipif; ipif != NULL;
10239 ipif = ipif->ipif_next) {
10240 if (!IPIF_IS_CONDEMNED(ipif) &&
10241 ipif->ipif_lcl_addr == ilm->ilm_ifaddr &&
10245 if (ipif != NULL) {
10246 ipif_get_name(ipif,
10351 ipif_t *ipif;
10388 /* Is there an ipif for ilm_ifaddr? */
10389 for (ipif = ill->ill_ipif; ipif != NULL;
10390 ipif = ipif->ipif_next) {
10391 if (!IPIF_IS_CONDEMNED(ipif) &&
10392 ipif->ipif_lcl_addr == ilm->ilm_ifaddr &&
10396 if (ipif != NULL) {
10397 ipif_get_name(ipif,
12489 * to complete. This involves waiting for the ire and ipif refcnts to go down
12570 * ipif entails ipif_down, set address, ipif_up. Bringing down the interface
12646 * All of the extraction functions return a refheld ipif.
12690 * Release the ipif so that ipif_down and friends that wait for
12692 * values. We are writer so we can access the ipif even after releasing
12693 * the ipif.
15228 * interface `ill'. If `ipifp' is non-NULL, it's set to a held ipif
15236 ipif_t *ipif;
15238 ipif = ipif_lookup_addr_exact(*v4srcp, ill, ill->ill_ipst);
15239 if (ipif != NULL) {
15241 *ipifp = ipif;
15243 ipif_refrele(ipif);
15247 ip1dbg(("ipif_lookup_testaddr_v4: cannot find ipif for src %x\n",