• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/bootp-298/IPConfiguration.bproj/

Lines Matching +defs:range +defs:list

609 IFStateList_ifstate_with_name(IFStateList_t * list, const char * ifname,
613 IFStateListGetIFState(IFStateList_t * list, CFStringRef ifname,
812 * Process the list of IPv6 addresses we registered with a sleep proxy.
813 * For each address, check whether it is in the list of addresses
817 * The list of IPv6 addresses is copied at wake, and tossed at sleep.
818 * If the list is more than 60 seconds old, also toss it to avoid needing
841 "%@: tossing neighbor advert list (%ld - %ld) > (%d)",
874 /* address ready, send neighbor advert and remove from list */
915 /* list is empty, toss it */
929 CFArrayRef list;
934 list = CFDictionaryGetValue(info, kBSPRegisteredAddresses);
935 if (isA_CFArray(list) != NULL) {
938 ifname, list);
940 ret = CFArrayCreateMutableCopy(NULL, CFArrayGetCount(list), list);
1248 ActiveDuringSleepProcess(IFStateList_t * list)
1253 if_count = dynarray_count(list);
1255 IFStateRef ifstate = dynarray_element(list, i);
1458 dynarray_t * list;
1461 list = &ifstate->services;
1464 list = &ifstate->services_v6;
1466 for (i = 0; i < dynarray_count(list); i++) {
1467 ServiceRef service_p = dynarray_element(list, i);
1726 dynarray_t * list;
1729 list = &ifstate->services;
1732 list = &ifstate->services_v6;
1734 for (i = 0; i < dynarray_count(list); i++) {
1735 ServiceRef service_p = dynarray_element(list, i);
1738 dynarray_free_element(list, i);
2022 IFStateList_ifstate_with_name(IFStateList_t * list, const char * ifname,
2027 for (i = 0; i < dynarray_count(list); i++) {
2028 IFStateRef element = dynarray_element(list, i);
2040 IFStateListGetIFState(IFStateList_t * list, CFStringRef ifname,
2045 for (i = 0; i < dynarray_count(list); i++) {
2046 IFStateRef element = dynarray_element(list, i);
2059 IFStateList_ifstate_create(IFStateList_t * list, interface_t * if_p)
2063 ifstate = IFStateList_ifstate_with_name(list, if_name(if_p), NULL);
2067 dynarray_add(list, ifstate);
2074 IFStateList_ifstate_free(IFStateList_t * list, const char * ifname)
2079 ifstate = IFStateList_ifstate_with_name(list, ifname, &where);
2083 dynarray_free_element(list, where);
2089 IFStateList_print(IFStateList_t * list)
2094 for (i = 0; i < dynarray_count(list); i++) {
2095 IFStateRef ifstate = dynarray_element(list, i);
2113 IFStateListGetServiceWithID(IFStateList_t * list, CFStringRef serviceID,
2118 for (i = 0; i < dynarray_count(list); i++) {
2119 IFStateRef ifstate = dynarray_element(list, i);
4334 IFStateList_all_services_event(IFStateList_t * list,
4338 int if_count = dynarray_count(list);
4341 IFStateRef ifstate = dynarray_element(list, i);
4350 IFStateList_all_services_sleep(IFStateList_t * list)
4353 int if_count = dynarray_count(list);
4356 IFStateRef ifstate = dynarray_element(list, i);
5269 CFMutableArrayRef list = NULL;
5277 list = CFArrayCreateMutable(NULL, 0, &kCFTypeArrayCallBacks);
5291 my_CFArrayAppendUniqueValue(list, serviceID);
5295 list_count = CFArrayGetCount(list);
5297 my_CFRelease(&list);
5300 /* sort the list according to the defined service order */
5301 CFArraySortValues(list, CFRangeMake(0, list_count),
5304 return (list);
5370 /* build a list of configured service ID's */
5470 CFMutableArrayRef list = NULL;
5476 list = CFArrayCreateMutable(NULL, 0, &kCFTypeArrayCallBacks);
5477 if (list == NULL) {
5487 CFArrayAppendValue(list, item);
5490 if (CFArrayGetCount(list) == 0) {
5491 my_CFRelease(&list);
5493 return (list);
5503 ServiceConfigRef list;
5514 if (scl->list == NULL) {
5517 for (i = 0, scan = scl->list; i < scl->count; i++, scan++) {
5523 free(scl->list);
5524 scl->list = NULL;
5537 for (i = 0, scan = scl->list; i < scl->count; i++, scan++) {
5581 for (i = 0, scan = scl->list; i < scl->count; i++, scan++) {
5589 for (i = 0, scan = scl->list; i < scl->count; i++, scan++) {
5601 for (i = 0, scan = scl->list; i < scl->count; i++, scan++) {
5609 for (i = 0, scan = scl->list; i < scl->count; i++, scan++) {
5618 for (i = 0, scan = scl->list; i < scl->count; i++, scan++) {
5640 for (i = 0, scan = scl->list; i < scl->count; i++, scan++) {
5685 scl->list = (ServiceConfigRef)malloc(if_service_count * sizeof(*scl->list));
5686 if (scl->list == NULL) {
5726 scl->list[scl->count].serviceID = CFRetain(serviceID);
5727 scl->list[scl->count].method = method;
5728 scl->list[scl->count].method_data = method_data;
5752 dynarray_t * list;
5759 list = &ifstate->services;
5762 list = &ifstate->services_v6;
5768 for (i = 0; i < dynarray_count(list); i++) {
5769 ServiceRef service_p = dynarray_element(list, i);
5864 for (i = 0, config = scl.list; i < scl.count; i++, config++) {
5914 * Go through the list of interfaces and find those that have a
6042 /* notify when list of interfaces changes */
6106 * Create a temporary list to store the name of each interface that
6107 * has been removed. Iterate through that list to remove individual
6109 * iterating over a list while it is modified.
6252 /* update our neighbor advert list */
6557 my_log(~LOG_DEBUG, "%@: IPv6 address list = %@", ifn_cf, str);
6992 /* list of interfaces changed */
7046 CFRange range = CFRangeMake(0, CFStringGetLength(cache_key));
7049 range, 0, NULL)) {