• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/configd-699.1.5/Plugins/InterfaceNamer/

Lines Matching +defs:type +defs:prefix +defs:key

183  *   interface.  For now, the key is the BSD name and the
227 addTimestamp(CFMutableDictionaryRef dict, CFStringRef key)
234 CFDictionaryAddValue(dict, key, val);
454 CFStringRef key;
456 key = SCDynamicStoreKeyCreate(NULL, CFSTR("%@" MY_PLUGIN_NAME),
458 (void)SCDynamicStoreSetValue(NULL, key, S_state);
459 CFRelease(key);
700 CFNumberRef type;
705 type = _SCNetworkInterfaceGetIOInterfaceType(interface);
707 if (type == NULL || addr == NULL) {
722 if (CFEqual(type, t) && CFEqual(addr, a)) {
737 CFNumberRef type;
743 type = _SCNetworkInterfaceGetIOInterfaceType(interface);
745 if (type == NULL || unit == NULL) {
761 if (CFEqual(type, t) && CFEqual(unit, u)) {
828 // match interface type
880 // match interface type
922 interfaceExists(CFStringRef prefix, CFNumberRef unit)
945 // look for kIONetworkInterface with matching prefix and unit
947 match_vals[0] = prefix;
1003 * a given type (vendor, model, ...) to not care about the specific adaptor
1044 // interface of the same type that also needs to be named
1071 CFStringRef prefix;
1074 prefix = CFDictionaryGetValue(match, CFSTR(kIOInterfaceNamePrefix));
1076 if (isA_CFString(prefix) && isA_CFNumber(unit)) {
1077 if (!interfaceExists(prefix, unit)) {
1154 // remove any dict that has our type/addr
1159 // remove any dict that has the same type/unit
1194 CFNumberRef type;
1196 type = CFDictionaryGetValue(dict, CFSTR(kIOInterfaceType));
1197 if (CFEqual(type, if_type)) {
1401 CFNumberRef type;
1406 type = _SCNetworkInterfaceGetIOInterfaceType(interface);
1414 type,
1439 continue; // if not the same interface type
1454 // if same type, same unit, same path
1458 // if interface type/unit not found
1502 CFNumberRef type;
1508 type = _SCNetworkInterfaceGetIOInterfaceType(interface);
1586 next_unit = builtinCount(if_list, i, type);
1590 // assigned to the same type of interface, then we will perform a
1592 // the new interface is a different type then we assume that the
1610 next_unit = builtinCount(if_list, n, type);
1612 unit = getHighestUnitForType(type);
1721 ": interface type %@ assigned "
1723 type, new_unit, unit);
1882 CFNumberRef type;
1887 type = CFDictionaryGetValue(if_dict, CFSTR(kIOInterfaceType));
1894 type,
1956 CFStringRef type;
1959 type = CFDictionaryGetValue(dict, CFSTR(kSCNetworkInterfaceType));
1960 if (!isA_CFString(type) || !CFEqual(type, kSCNetworkInterfaceTypeEthernet)) {
1978 CFStringRef type;
1981 type = CFDictionaryGetValue(dict, CFSTR(kSCNetworkInterfaceType));
1982 if (!isA_CFString(type) || !CFEqual(type, kSCNetworkInterfaceTypeIEEE80211)) {