Lines Matching refs:policy_ptr
358 ip6_asp_t *policy_ptr = policy;
362 if ((count = strioctl(sock, SIOCGIP6ADDRPOLICY, policy_ptr,
368 policy_ptr = malloc(count * sizeof (ip6_asp_t));
369 if (policy_ptr == NULL) {
373 if ((count = strioctl(sock, SIOCGIP6ADDRPOLICY, policy_ptr,
401 &policy_ptr[policy_index].ip6_asp_prefix, prefixstr,
403 ip_mask_to_plen_v6(&policy_ptr[policy_index].ip6_asp_mask));
405 policy_ptr[policy_index].ip6_asp_precedence,
406 policy_ptr[policy_index].ip6_asp_label);
409 if (policy_ptr != policy)
410 free(policy_ptr);