Lines Matching defs:index

3197 	int index;
3206 index = IP_V6_G_HEAD;
3208 index = IP_V4_G_HEAD;
3210 ill_interface = IP_VX_ILL_G_LIST(index, ipst);
3214 while (ill_interface != (ill_if_t *)&IP_VX_ILL_G_LIST(index, ipst)) {
3225 if (ill_interface == (ill_if_t *)&IP_VX_ILL_G_LIST(index, ipst)) {
3247 ghead = ipst->ips_ill_g_heads[index];
3566 phyint_exists(uint_t index, ip_stack_t *ipst)
3568 ASSERT(index != 0);
3572 &index, NULL) != NULL);
3577 * When the index counter passes IF_INDEX_MAX for the first time, the wrap
3579 * falls through and resets the index counter back to 1, the minimum value
3580 * for the interface index. The logic below assumes that ips_ill_index
3595 * to assume that a given index is unallocated.
3612 /* found unused index - use it */
3629 * Assign a unique interface index for the phyint.
3854 ill_lookup_on_ifindex_global_instance(uint_t index, boolean_t isv6)
3868 ill = ill_lookup_on_ifindex(index, isv6, ipst);
3874 * Return a pointer to the ill which matches the index and IP version type.
3877 ill_lookup_on_ifindex(uint_t index, boolean_t isv6, ip_stack_t *ipst)
3888 (void *) &index, NULL);
3907 * Verify whether or not an interface index is valid for the specified zoneid
3909 * It can be zero (meaning "reset") or an interface index assigned
3937 ill_get_next_ifindex(uint_t index, boolean_t isv6, ip_stack_t *ipst)
3945 if (index == 0) {
3951 (void *) &index, NULL);
3960 * corresponds to index, avl_walk needs to be called again
3962 if (!((index != 0) && (phyi == phyi_initial))) {
5541 * RTA_IFP sockaddr with an interface index, an alternate method of
5543 * the interface index that specifies the outgoing interface rather than
5560 * interface index is necessary and this index can be carried inside a
5562 * of using the interface index, however, is that all of the ipif's that
5563 * are part of an ill have the same index and so the RTA_IFP sockaddr
6012 * interface index, see the comments in ip_rt_add().
6053 * interface index so MATCH_IRE_ILL is added to match_flags.
8751 int index;
8764 index = ioc_cmd & 0xFF;
8765 if (index < ip_ndx_ioctl_count) {
8766 ipip = &ip_ndx_ioctl_table[index];
15907 * Return a pointer to the ipif which matches the index, IP version type and
15911 ipif_lookup_on_ifindex(uint_t index, boolean_t isv6, zoneid_t zoneid,
15917 ill = ill_lookup_on_ifindex(index, isv6, ipst);
15936 * Change an existing physical interface's index. If the new index
15937 * is acceptable we update the index and the phyint_list_avl_by_index tree.
15939 * index value.
15950 uint_t old_index, index;
15955 index = ifr->ifr_index;
15957 index = lifr->lifr_index;
15960 * Only allow on physical interface. Also, index zero is illegal.
15964 if (ipif->ipif_id != 0 || index == 0 || index > IF_INDEX_MAX) {
15968 /* If the index is not changing, no work to do */
15969 if (phyi->phyint_ifindex == index)
15973 * Use phyint_exists() to determine if the new interface index
15974 * is already in use. If the index is unused then we need to
15977 * index value) will not find the phyint.
15980 if (phyint_exists(index, ipst)) {
15986 * The new index is unused. Set it in the phyint. However we must not
15991 &index, sizeof (index));
15994 phyi->phyint_ifindex = index;
15998 &index, &where);
16026 /* Get the interface index */
16536 uint_t index;
16540 index = *((uint_t *)index_ptr);
16542 * let the phyint with the lowest index be on top.
16544 if (((phyint_t *)phyip)->phyint_ifindex < index)
16546 if (((phyint_t *)phyip)->phyint_ifindex > index)
17667 ill_lookup_on_ifindex_zoneid(uint_t index, zoneid_t zoneid, boolean_t isv6,
17673 ill = ill_lookup_on_ifindex(index, isv6, ipst);