Lines Matching defs:ipif

89 static void	rts_getifdata(if_data_t *if_data, const ipif_t *ipif);
412 ipif_t *ipif;
448 * that -ifp picks the zoneid from the first ipif on the ill.
449 * But it might not be useful since the first ipif will always
452 ipif = ipif_get_next_ipif(NULL, ill);
453 if (ipif != NULL) {
454 zoneid = ipif->ipif_zoneid;
455 ipif_refrele(ipif);
497 * route is achievable by plumbing a new ipif and
498 * setting up the interface route via this ipif,
1234 ipif_t *ipif = NULL;
1276 * pick the first ipif on the ill.
1278 ipif = ipif_get_next_ipif(NULL, ill);
1279 if (ipif != NULL) {
1280 if (ipif->ipif_isv6)
1281 ifaddr6 = ipif->ipif_v6lcl_addr;
1283 ifaddr = ipif->ipif_lcl_addr;
1284 if (ipif->ipif_flags & IPIF_POINTOPOINT) {
1286 if (ipif->ipif_isv6)
1287 brdaddr6 = ipif->ipif_v6pp_dst_addr;
1289 brdaddr = ipif->ipif_pp_dst_addr;
1291 ipif_refrele(ipif);
1373 rts_getifdata(if_data_t *if_data, const ipif_t *ipif)
1375 if_data->ifi_type = ipif->ipif_ill->ill_type;
1379 if_data->ifi_mtu = ipif->ipif_ill->ill_mtu; /* mtu */
1381 if_data->ifi_metric = ipif->ipif_ill->ill_metric;
1937 ip_rts_ifmsg(const ipif_t *ipif, uint_t flags)
1939 ip_rts_xifmsg(ipif, 0, 0, flags);
1943 ip_rts_xifmsg(const ipif_t *ipif, uint64_t set, uint64_t clear, uint_t flags)
1948 ip_stack_t *ipst = ipif->ipif_ill->ill_ipst;
1955 if (ipif->ipif_id != 0)
1957 if (ipif->ipif_isv6) {
1965 ipif->ipif_ill, mp, NULL);
1972 ipif->ipif_ill, mp, NULL);
1975 ifm->ifm_index = ipif->ipif_ill->ill_phyint->phyint_ifindex;
1976 ifm->ifm_flags = (ipif->ipif_flags | ipif->ipif_ill->ill_flags |
1977 ipif->ipif_ill->ill_phyint->phyint_flags | set) & ~clear;
1978 rts_getifdata(&ifm->ifm_data, ipif);
1987 if (IS_UNDER_IPMP(ipif->ipif_ill))
2000 rts_new_rtsmsg(int cmd, int error, const ipif_t *ipif, uint_t flags)
2007 ip_stack_t *ipst = ipif->ipif_ill->ill_ipst;
2014 if (!ipif->ipif_isv6) {
2015 if (ipif->ipif_lcl_addr == INADDR_ANY)
2017 } else if (IN6_IS_ADDR_UNSPECIFIED(&ipif->ipif_v6lcl_addr)) {
2022 if (ipif->ipif_isv6)
2040 ipif->ipif_net_mask, 0, ipif->ipif_lcl_addr,
2041 ipif->ipif_pp_dst_addr, 0,
2042 ipif->ipif_lcl_addr, ipif->ipif_ill,
2047 &ipv6_all_zeros, &ipif->ipif_v6net_mask,
2048 &ipv6_all_zeros, &ipif->ipif_v6lcl_addr,
2049 &ipif->ipif_v6pp_dst_addr, &ipv6_all_zeros,
2050 &ipif->ipif_v6lcl_addr, ipif->ipif_ill,
2056 ipif->ipif_ill->ill_phyint->phyint_ifindex;
2057 ifam->ifam_metric = ipif->ipif_ill->ill_metric;
2064 ipif->ipif_lcl_addr, ipif->ipif_net_mask, 0,
2069 &ipif->ipif_v6lcl_addr,
2070 &ipif->ipif_v6net_mask, &ipv6_all_zeros,
2078 ipif->ipif_ill->ill_phyint->phyint_ifindex;
2094 ip_rts_newaddrmsg(int cmd, int error, const ipif_t *ipif, uint_t flags)
2096 ip_stack_t *ipst = ipif->ipif_ill->ill_ipst;
2104 if (IS_UNDER_IPMP(ipif->ipif_ill))
2122 rts_new_rtsmsg(RTM_NEWADDR, error, ipif, flags);
2123 rts_new_rtsmsg(RTM_ADD, error, ipif, flags);
2126 rts_new_rtsmsg(RTM_DELETE, error, ipif, flags);
2127 rts_new_rtsmsg(RTM_DELADDR, error, ipif, flags);
2130 rts_new_rtsmsg(cmd, error, ipif, flags);