• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/configd-699.1.5/Plugins/IPMonitor/

Lines Matching +defs:range +defs:list

223 static const char * * 	list;
232 if (list == NULL) {
235 list = (const char * *)malloc(sizeof(*list) * list_size);
236 list[0] = strdup("");
237 list[1] = strdup(kLoopbackInterface);
243 if (strcmp(list[i], ifname) == 0) {
251 list = (const char * *)realloc(list, sizeof(*list) * list_size);
253 list[list_count] = strdup(ifname);
267 strlcpy(if_name, list[idx], IFNAMSIZ);
400 IPv4Route list[1]; /* variable length */
405 IPv6Route list[1]; /* variable length */
1249 CFArrayRef list;
1251 list = CFDictionaryGetValue(dict, prop);
1252 if (isA_CFArray(list) != NULL
1253 && CFArrayGetCount(list) > 0
1254 && cfnumber_to_int(CFArrayGetValueAtIndex(list, 0), val)) {
1534 * Add the given route to the list of routes, eliminating lower-ranked
1541 * Route list updated with the given route, possibly a different pointer,
1663 /* not possible because we maintain a sorted list */
1724 * Invoke RouteListAddRoute for each route in the given list
1725 * 'service_routes' combining them into a combined list 'routes'.
1745 /* only apply rank to first element of the list (default route) */
2286 for (i = 0, r = routes->list; i < routes->count; i++, r++) {
2297 return (offsetof(IPv4RouteList, list[n]));
2727 * Given the service ipv4 entity dictionary, generate the list of routes.
2898 r = routes->list;
3093 for (i = 0, r = routes->list; i < routes->count; i++, r++) {
3150 return (offsetof(IPv6RouteList, list[n]));
3239 * Given the service IPv6 entity dictionary, generate the list of routes.
3385 r = routes->list;
3727 CFRange range;
3737 range = CFStringFind(comp, CFSTR("/"), 0);
3738 if (range.location == kCFNotFound) {
3741 range.length = CFStringGetLength(comp) - range.location;
3742 CFStringDelete(comp, range);
3930 router = &routes->list[0].gateway;
3932 *ifindex_p = routes->list[0].ifindex;
4672 * a DHCP server) is in the search list.
5589 r = new_routelist->list;
5691 r = new_routelist->list;
6866 default_rank = routelist.v4->list->rank;
6867 candidate.addr.v4 = routelist.v4->list->ifa;
6870 default_rank = routelist.v6->list->rank;
6871 candidate.addr.v6 = routelist.v6->list->ifa;
8896 make_IPv4RouteList_for_test(IPv4RouteListRef list,
8943 ret = IPv4RouteListAddRouteList(list, 1, r, rank);
8961 /* find the end of the list */
9487 IPv6AddressRef list, int list_count)
9495 if (list == NULL || list_count == 0) {
9498 for (i = 0, scan = list; i < list_count; i++, scan++) {
9565 make_IPv6RouteList_for_test(IPv6RouteListRef list,
9612 ret = IPv6RouteListAddRouteList(list, 1, r, rank);
9630 /* find the end of the list */