Lines Matching refs:addresses
749 ifaddr_t **addresses)
751 if (addresses == NULL) return EINVAL;
752 return ifnet_get_address_list_family(interface, addresses, 0);
758 ifaddr_t **addresses,
765 if (addresses == NULL) return EINVAL;
766 *addresses = NULL;
793 MALLOC(*addresses, ifaddr_t*, sizeof(ifaddr_t) * (cmax + 1), M_TEMP, M_NOWAIT);
794 if (*addresses == NULL) {
812 (*addresses)[count] = (ifaddr_t)addr;
813 ifaddr_reference((*addresses)[count]);
824 (*addresses)[cmax] = 0;
831 ifaddr_t *addresses)
835 if (addresses == NULL) return;
837 for (i = 0; addresses[i] != NULL; i++)
839 ifaddr_release(addresses[i]);
842 FREE(addresses, M_TEMP);
989 errno_t ifnet_get_multicast_list(ifnet_t interface, ifmultiaddr_t **addresses)
996 if (interface == NULL || addresses == NULL)
1012 MALLOC(*addresses, ifmultiaddr_t*, sizeof(ifmultiaddr_t) * (cmax + 1), M_TEMP, M_NOWAIT);
1013 if (*addresses == NULL) {
1022 (*addresses)[count] = (ifmultiaddr_t)addr;
1023 ifmaddr_reference((*addresses)[count]);
1026 (*addresses)[cmax] = 0;
1034 ifmultiaddr_t *addresses)
1038 if (addresses == NULL) return;
1040 for (i = 0; addresses[i] != NULL; i++)
1042 ifmaddr_release(addresses[i]);
1045 FREE(addresses, M_TEMP);