]> git.saurik.com Git - apple/configd.git/blob - SystemConfiguration.fproj/genSCPreferences.c
configd-963.tar.gz
[apple/configd.git] / SystemConfiguration.fproj / genSCPreferences.c
1 /*
2 * Copyright (c) 2000-2017 Apple Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23
24 /*
25 * genSCPreferences.c
26 * - generates System Configuration header/cfile
27 * - invoke with "header" to generate the header
28 * - invoke with "cfile" to generate the cfile
29 */
30
31 /*
32 * Modification History
33 *
34 * 12 March 2015 Sushant Chavan (sushant_chavan@apple.com)
35 * - cleanup of SC_SCHEMA_DECLARATION and SC_SCHEMA_KV macros.
36 *
37 * 4 March 2004 Allan Nathanson (ajn@apple.com)
38 * - an alternate scheme to help facilitate access to the schema
39 * definitions for cross-compilation to earlier releases AND
40 * access to CFM applications.
41 *
42 * 16 July 2003 Allan Nathanson (ajn@apple.com)
43 * - changes to facilitate cross-compilation to earlier releases
44 *
45 * 5 May 2003 Allan Nathanson (ajn@apple.com)
46 * - switch back to "extern const CFStringRef ..."
47 *
48 * 1 June 2001 Allan Nathanson <ajn@apple.com>
49 * - public API conversion
50 *
51 * 27 Apr 2001 Allan Nathanson (ajn@apple.com)
52 * - switch from "extern const CFStringRef ..." to "#define ..."
53 *
54 * 3 Nov 2000 Dieter Siegmund (dieter@apple)
55 * - created
56 */
57 #include <stdio.h>
58 #include <stdlib.h>
59 #include <string.h>
60 #include <unistd.h>
61 #include <mach/boolean.h>
62
63 char copyright_string[] =
64 "/*\n"
65 " * Copyright (c) 2000-2017 Apple Inc. All rights reserved.\n"
66 " *\n"
67 " * @APPLE_LICENSE_HEADER_START@\n"
68 " *\n"
69 " * This file contains Original Code and/or Modifications of Original Code\n"
70 " * as defined in and that are subject to the Apple Public Source License\n"
71 " * Version 2.0 (the 'License'). You may not use this file except in\n"
72 " * compliance with the License. Please obtain a copy of the License at\n"
73 " * http://www.opensource.apple.com/apsl/ and read it before using this\n"
74 " * file.\n"
75 " *\n"
76 " * The Original Code and all software distributed under the License are\n"
77 " * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER\n"
78 " * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,\n"
79 " * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,\n"
80 " * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.\n"
81 " * Please see the License for the specific language governing rights and\n"
82 " * limitations under the License.\n"
83 " *\n"
84 " * @APPLE_LICENSE_HEADER_END@\n"
85 " */\n";
86
87
88 typedef enum {
89 DEFINE,
90 DEFINE_PRIVATE,
91 COMMENT,
92 GROUP,
93 SC_10_1,
94 SC_10_2,
95 SC_10_3,
96 SC_10_1_10_4, // deprecated in 10.4
97 SC_10_4,
98 SC_10_5,
99 SC_10_5_10_7, // deprecated in 10.7
100 SC_10_1_10_9, // deprecated in 10.9
101 SC_10_2_10_9, // deprecated in 10.9
102 SC_10_2_10_13, // deprecated in 10.13
103 SC_10_3_10_9, // deprecated in 10.9
104 SC_10_4_10_9, // deprecated in 10.9
105 SC_10_6_IPHONE_2_0,
106 SC_10_6_IPHONE_3_0,
107 SC_10_7_IPHONE_4_0,
108 COMMENT_PRIVATE,
109 GROUP_PRIVATE,
110 SC_10_5_PRIVATE,
111 SC_10_2_10_12_IPHONE_2_0_10_0, // deprecated in OSX 10.12, iOS 10.0
112 SC_10_3_10_12_IPHONE_2_0_10_0, // deprecated in OSX 10.12, iOS 10.0
113 SC_10_6_IPHONE_2_0_PRIVATE,
114 SC_10_6_IPHONE_3_0_PRIVATE,
115 SC_10_7_IPHONE_4_0_PRIVATE,
116 SC_10_7_IPHONE_5_0_PRIVATE,
117 SC_10_8_IPHONE_6_0_PRIVATE,
118 SC_10_9_IPHONE_6_0_PRIVATE,
119 SC_10_9_IPHONE_7_0_PRIVATE,
120 SC_10_10_IPHONE_7_0_PRIVATE,
121 SC_10_10_IPHONE_8_0_PRIVATE,
122 SC_10_11_IPHONE_9_0_PRIVATE,
123 SC_10_12_IPHONE_10_0_PRIVATE,
124 SC_10_13_IPHONE_10_0_PRIVATE,
125 SC_10_13_IPHONE_11_0_PRIVATE,
126 SC_IPHONE_2_0_PRIVATE,
127 COMMENT_DEPRECATED,
128 GROUP_DEPRECATED,
129 COMMENT_DEPRECATED_NO_HEADER,
130 GROUP_DEPRECATED_NO_HEADER,
131 DEPRECATED_NO_HEADER,
132 END
133 } controlType;
134
135 #define SC_SCHEMA_DECLARATION "SC_SCHEMA_DECLARATION"
136 #define SC_SCHEMA_KV "SC_SCHEMA_KV"
137
138 #define KEY_PREFIX "kSC"
139
140 #define COMP "Comp"
141 #define DYNAMICSTORE "DynamicStore"
142 #define PREF "Pref"
143 #define PROP "Prop"
144 #define PATH "Path"
145 #define NETENT "EntNet"
146 #define NETPROP "PropNet"
147 #define NETVAL "ValNet"
148 #define SETUPENT "EntSetup"
149 #define SETUPPROP "PropSetup"
150 #define SYSTEMENT "EntSystem"
151 #define SYSTEMPROP "PropSystem"
152 #define RESV "Resv"
153 #define USERSENT "EntUsers"
154 #define USERSPROP "PropUsers"
155 #define VERSION "Version"
156 #define VIRTUALPROP "PropVirtualNetworkInterfaces"
157
158 #define CFARRAY_CFDICTIONARY "CFArray[CFDictionary]"
159 #define CFARRAY_CFNUMBER "CFArray[CFNumber]"
160 #define CFARRAY_CFSTRING "CFArray[CFString]"
161 #define CFBOOLEAN "CFBoolean"
162 #define CFDATA "CFData"
163 #define CFDATE "CFDate"
164 #define CFDICTIONARY "CFDictionary"
165 #define CFNUMBER "CFNumber"
166 #define CFNUMBER_BOOL "CFNumber (0 or 1)"
167 #define CFSTRING "CFString"
168
169 #define ACCESSPOINTNAME "AccessPointName"
170 #define ACCOUNT "Account"
171 #define ACSP "ACSP" // Apple Client Server Protocol
172 #define ACTION "Action"
173 #define ACTIVE "Active"
174 #define ADDITIONAL "Additional"
175 #define ADDRESS "Address"
176 #define ADDRESSES "Addresses"
177 #define AFTER "After"
178 #define AGGRESSIVE "Aggressive"
179 #define AIRPORT "AirPort"
180 #define ALERT "Alert"
181 #define ALIVE "Alive"
182 #define ALLOW "Allow"
183 #define ALLOWED "Allowed"
184 #define ALLOWNETCREATION "AllowNetCreation"
185 #define ALTERNATE "Alternate"
186 #define ALWAYS "Always"
187 #define ANYREGEX "AnyRegex"
188 #define APP "App"
189 #define APPLE "Apple"
190 #define APPLETALK "AppleTalk"
191 #define ARP "ARP"
192 #define AUDIOVIDEOCALLS "AudioVideoCalls"
193 #define AUTH "Auth"
194 #define AUTHENTICATIONMETHOD "AuthenticationMethod"
195 #define AUTOCONFIG "AutoConfig"
196 #define AUTODISCOVERY "AutoDiscovery"
197 #define AUTOMATIC "Automatic"
198 #define AV "AV"
199 #define BEFORE "Before"
200 #define BINDINGMETHODS "BindingMethods"
201 #define BOND "Bond"
202 #define BOOTP "BOOTP"
203 #define BRIDGE "Bridge"
204 #define BROADCAST "Broadcast"
205 #define BYPASS "Bypass"
206 #define CALLWAITINGAUDIBLEALERT "CallWaitingAudibleAlert"
207 #define CAPABILITIES "Capabilities"
208 #define CAPABILITY "Capability"
209 #define CAUSE "Cause"
210 #define CCP "CCP"
211 #define CELLULAR "Cellular"
212 #define CERTIFICATE "Certificate"
213 #define CGA "CGA"
214 #define CHAP "CHAP"
215 #define COMM "Comm"
216 #define COMPATIBLE "Compatible"
217 #define COMPRESSIONACFIELD "CompressionACField"
218 #define COMPRESSIONPFIELD "CompressionPField"
219 #define COMPRESSIONVJ "CompressionVJ"
220 #define COMPUTERNAME "ComputerName"
221 #define CONFIGMETHOD "ConfigMethod"
222 #define CONFIRMED "Confirmed"
223 #define CONNECT "Connect"
224 #define CONNECTDELAY "ConnectDelay"
225 #define CONNECTION "Connection"
226 #define CONNECTSPEED "ConnectSpeed"
227 #define CONNECTTIME "ConnectTime"
228 #define CONSERVATIVE "Conservative"
229 #define CONSOLEUSER "ConsoleUser"
230 #define CONTEXTID "ContextID"
231 #define CREDENTIAL "Credential"
232 #define CURRENTSET "CurrentSet"
233 #define DATACOMPRESSION "DataCompression"
234 #define DEFAULT "Default"
235 #define DEFAULTZONE "DefaultZone"
236 #define DESIGNATED "Designated"
237 #define DEST "Dest"
238 #define DESTINATION "Destination"
239 #define DETACHING "Detaching"
240 #define DEVICE "Device"
241 #define DEVICENAME "DeviceName"
242 #define DHCP "DHCP"
243 #define DHCPCLIENTID "DHCPClientID"
244 #define DIALMODE "DialMode"
245 #define DIALONDEMAND "DialOnDemand"
246 #define DISABLEUNTILNEEDED "DisableUntilNeeded"
247 #define DISCONNECT "Disconnect"
248 #define DISCONNECTONANSWER "DisconnectOnAnswer"
249 #define DISCONNECTONFASTUSERSWITCH "DisconnectOnFastUserSwitch"
250 #define DISCONNECTONIDLE "DisconnectOnIdle"
251 #define DISCONNECTONIDLETIMER "DisconnectOnIdleTimer"
252 #define DISCONNECTONLOGOUT "DisconnectOnLogout"
253 #define DISCONNECTONSLEEP "DisconnectOnSleep"
254 #define DISCONNECTONWAKE "DisconnectOnWake"
255 #define DISCONNECTONWAKETIMER "DisconnectOnWakeTimer"
256 #define DISCONNECTTIME "DisconnectTime"
257 #define DISPLAYTERMINALWINDOW "DisplayTerminalWindow"
258 #define DNS "DNS"
259 #define DOMAIN "Domain"
260 #define DOMAINS "Domains"
261 #define DURINGSLEEP "DuringSleep"
262 #define EAP "EAP"
263 #define EAPOL "EAPOL"
264 #define ECHO "Echo"
265 #define ECHOFAILURE "EchoFailure"
266 #define ECHOINTERVAL "EchoInterval"
267 #define ENABLE "Enable"
268 #define ENABLED "Enabled"
269 #define ENCODING "Encoding"
270 #define ENCRYPTION "Encryption"
271 #define ERRORCORRECTION "ErrorCorrection"
272 #define ETHERNET "Ethernet"
273 #define EVALUATE "Evaluate"
274 #define EXCEPTIONSLIST "ExceptionsList"
275 #define EXCLUDED "Excluded"
276 #define EXCLUDESIMPLEHOSTNAMES "ExcludeSimpleHostnames"
277 #define EXECUTABLE "Executable"
278 #define EXPENSIVE "Expensive"
279 #define EXPIRED "Expired"
280 #define EXTERNAL "External"
281 #define FAILOVER "Failover"
282 #define FAILURE "Failure"
283 #define FALLBACK "FallBack"
284 #define FILE "File"
285 #define FIREWIRE "FireWire"
286 #define FIRST "First"
287 #define FLAGS "Flags"
288 #define FTP "FTP"
289 #define GATEWAY "Gateway"
290 #define GID "GID"
291 #define GLOBAL "Global"
292 #define GOPHER "Gopher"
293 #define HARDWARE "Hardware"
294 #define HIGH "High"
295 #define HOLD "Hold"
296 #define HOSTNAME "HostName"
297 #define HOSTNAMES "HostNames"
298 #define HTTP "HTTP"
299 #define HTTPS "HTTPS"
300 #define HYBRID "Hybrid"
301 #define IDENTIFIER "Identifier"
302 #define IDENTIFIERS "Identifiers"
303 #define IDLEREMINDER "IdleReminder"
304 #define IDLEREMINDERTIMER "IdleReminderTimer"
305 #define IFNEEDED "IfNeeded"
306 #define IGNORE "Ignore"
307 #define IGNOREDIALTONE "IgnoreDialTone"
308 #define IGNORELINKSTATUS "IgnoreLinkStatus"
309 #define INACTIVE "Inactive"
310 #define INCLUDED "Included"
311 #define INFO "Info"
312 #define INFORM "INFORM"
313 #define INTERFACE "Interface"
314 #define INTERFACENAME "InterfaceName"
315 #define INTERFACES "Interfaces"
316 #define IP "IP"
317 #define IPCP "IPCP"
318 #define IPSEC "IPSec"
319 #define IPV4 "IPv4"
320 #define IPV6 "IPv6"
321 #define JAVASCRIPT "JavaScript"
322 #define JOIN "Join"
323 #define JUMBO_MTU "JUMBO_MTU"
324 #define KEYCHAIN "Keychain"
325 #define KEYID "KeyID"
326 #define L2TP "L2TP"
327 #define LAST "Last"
328 #define LAYER "Layer"
329 #define LCP "LCP"
330 #define LINK "Link"
331 #define LINKISSUES "LinkIssues"
332 #define LINKLOCAL "LinkLocal"
333 #define LINKQUALITY "LinkQuality"
334 #define LOCALCERTIFICATE "LocalCertificate"
335 #define LOCALHOSTNAME "LocalHostName"
336 #define LOCALIDENTIFIER "LocalIdentifier"
337 #define LOGFILE "Logfile"
338 #define LOOPBACK "Loopback"
339 #define LOW "Low"
340 #define LRO "LRO"
341 #define MACADDRESS "MACAddress"
342 #define MANUAL "Manual"
343 #define MATCH "Match"
344 #define MEDIA "Media"
345 #define MIXED "Mixed"
346 #define MODE "Mode"
347 #define MODEL "Model"
348 #define MODEM "Modem"
349 #define MODULEID "ModuleID"
350 #define MPPE128 "MPPE128"
351 #define MPPE40 "MPPE40"
352 #define MRU "MRU"
353 #define MSCHAP1 "MSCHAP1"
354 #define MSCHAP2 "MSCHAP2"
355 #define MTU "MTU"
356 #define NAME "Name"
357 #define NAT64 "NAT64"
358 #define NETBIOS "NetBIOS"
359 #define NETINFO "NetInfo"
360 #define NETWORK "Network"
361 #define NETWORKID "NetworkID"
362 #define NETWORKRANGE "NetworkRange"
363 #define NETWORKSERVICES "NetworkServices"
364 #define NEVER "Never"
365 #define NO "No"
366 #define NODE "Node"
367 #define NODEID "NodeID"
368 #define NOTE "Note"
369 #define ONDEMAND "OnDemand"
370 #define ONRETRY "OnRetry"
371 #define OPTIONS "Options"
372 #define ORDER "Order"
373 #define ORDERS "Orders"
374 #define OVERRIDEPRIMARY "OverridePrimary"
375 #define PAP "PAP"
376 #define PARAMETERS "Parameters"
377 #define PASSIVE "Passive"
378 #define PASSWORD "Password"
379 #define PEER "Peer"
380 #define PERSONALITY "Personality"
381 #define PLUGIN "Plugin"
382 #define PLUGINS "Plugins"
383 #define POLICY "Policy"
384 #define PORT "Port"
385 #define POWER "Power"
386 #define PPP "PPP"
387 #define PPPOE "PPPoE"
388 #define PPPSERIAL "PPPSerial"
389 #define PPTP "PPTP"
390 #define PREFERRED "Preferred"
391 #define PREFIX "Prefix"
392 #define PREFIXLENGTH "PrefixLength"
393 #define PREFS "Prefs"
394 #define PRIMARYINTERFACE "PrimaryInterface"
395 #define PRIMARYRANK "PrimaryRank"
396 #define PRIMARYSERVICE "PrimaryService"
397 #define PRIORITY "Priority"
398 #define PROBE "Probe"
399 #define PROMPT "Prompt"
400 #define PROTOCOL "Protocol"
401 #define PROXIES "Proxies"
402 #define PROXY "Proxy"
403 #define PULSEDIAL "PulseDial"
404 #define QOSMARKING "QoSMarking"
405 #define RANKED "Ranked"
406 #define RECEIVEACCM "ReceiveACCM"
407 #define RECENT "Recent"
408 #define REDIAL "Redial"
409 #define REDIALCOUNT "RedialCount"
410 #define REDIALINTERVAL "RedialInterval"
411 #define REGION "Region"
412 #define RELAY "Relay"
413 #define REMINDER "Reminder"
414 #define REMINDERTIME "ReminderTime"
415 #define REMOTEADDRESS "RemoteAddress"
416 #define REQUEST "Request"
417 #define REQUESTED "Requested"
418 #define REQUIRED "Required"
419 #define REQUIREMENT "Requirement"
420 #define RESOLVED "Resolved"
421 #define RETRYCONNECTTIME "RetryConnectTime"
422 #define ROOTSEPARATOR "RootSeparator"
423 #define ROUTE "Route"
424 #define ROUTER "Router"
425 #define ROUTERADVERTISEMENT "RouterAdvertisement"
426 #define ROUTES "Routes"
427 #define RTSP "RTSP"
428 #define RULE "Rule"
429 #define RULES "Rules"
430 #define RXCSUM "RXCSUM"
431 #define SAVEPASSWORDS "SavePasswords"
432 #define SCOPE "Scope"
433 #define SCOPED "Scoped"
434 #define SCRIPT "Script"
435 #define SEARCH "Search"
436 #define SEEDNETWORKRANGE "SeedNetworkRange"
437 #define SEEDROUTER "SeedRouter"
438 #define SEEDZONES "SeedZones"
439 #define SERVER "Server"
440 #define SERVERS "Servers"
441 #define SERVICE "Service"
442 #define SERVICEID "ServiceID"
443 #define SERVICEIDS "ServiceIDs"
444 #define SERVICEINDEX "ServiceIndex"
445 #define SERVICES "Services"
446 #define SESSIONTIMER "SessionTimer"
447 #define SETS "Sets"
448 #define SETUP "Setup"
449 #define SHAREDSECRET "SharedSecret"
450 #define SIGNING "Signing"
451 #define SMB "SMB"
452 #define SOCKS "SOCKS"
453 #define SORTLIST "SortList"
454 #define SPEAKER "Speaker"
455 #define SPECIFIC "Specific"
456 #define SPEED "Speed"
457 #define SSID "SSID"
458 #define STATE "State"
459 #define STATUS "Status"
460 #define STF "6to4"
461 #define STRONGEST "Strongest"
462 #define SUBNETMASK "SubnetMask"
463 #define SUBNETMASKS "SubnetMasks"
464 #define SUBTYPE "SubType"
465 #define SUPPLEMENTAL "Supplemental"
466 #define SUPPORTED "Supported"
467 #define SUPPORTSMODEMONHOLD "SupportsModemOnHold"
468 #define SUSPENDED "Suspended"
469 #define SYSTEM "System"
470 #define TAG "Tag"
471 #define TAGS "Tags"
472 #define TERMINALSCRIPT "TerminalScript"
473 #define TIMEOUT "Timeout"
474 #define TIMESTAMP "TimeStamp"
475 #define TOKEN "Token"
476 #define TRANSMITACCM "TransmitACCM"
477 #define TRANSPORT "Transport"
478 #define TSO "TSO"
479 #define TSO4 "TSO4"
480 #define TSO6 "TSO6"
481 #define TXCSUM "TXCSUM"
482 #define TYPE "Type"
483 #define UID "UID"
484 #define UPDATED "Updated"
485 #define URLSTRING "URLString"
486 #define USE "Use"
487 #define USERDEFINEDNAME "UserDefinedName"
488 #define USERS "Users"
489 #define UUID "UUID"
490 #define VENDOR "Vendor"
491 #define VERBOSELOGGING "VerboseLogging"
492 #define VIRTUALNETWORKINTERFACES "VirtualNetworkInterfaces"
493 #define VLAN "VLAN"
494 #define VLAN_HWTAGGING "VLAN_HWTAGGING"
495 #define VLAN_MTU "VLAN_MTU"
496 #define VPN "VPN"
497 #define WAITFORDIALTONE "WaitForDialTone"
498 #define WHITELISTED "Whitelisted"
499 #define WIFI "WiFi"
500 #define WINS "WINS"
501 #define WORKGROUP "Workgroup"
502 #define XAUTH "XAuth"
503
504
505 typedef struct {
506 int control;
507 const char * prefix;
508 const char * key;
509 const char * value;
510 const char * type;
511 } schemaDefinition;
512
513 static schemaDefinition names[] = {
514
515 { GROUP, NULL, "Reserved Keys", NULL, NULL },
516
517 { SC_10_1, RESV, LINK, "__LINK__", CFSTRING },
518 { SC_10_1, RESV, INACTIVE, "__INACTIVE__", NULL },
519 { COMMENT, "", NULL, NULL, NULL },
520
521 { GROUP, NULL, "Generic Keys", NULL, NULL },
522
523 { SC_10_1, PROP, INTERFACENAME, NULL, CFSTRING },
524 { SC_10_1, PROP, MACADDRESS, NULL, CFSTRING },
525 { SC_10_1, PROP, USERDEFINEDNAME, NULL, CFSTRING },
526 { SC_10_1, PROP, VERSION, NULL, CFSTRING },
527 { COMMENT, "", NULL, NULL, NULL },
528
529 { GROUP_PRIVATE, NULL, "Generic Keys", NULL, NULL },
530 { SC_10_5_PRIVATE, NETPROP, IGNORELINKSTATUS, NULL, CFBOOLEAN },
531 { SC_10_10_IPHONE_8_0_PRIVATE, PROP, CONFIRMED INTERFACENAME, NULL, CFSTRING },
532 { SC_10_11_IPHONE_9_0_PRIVATE, PROP, DISABLEUNTILNEEDED, NULL, CFNUMBER_BOOL },
533 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
534
535
536 { GROUP, PREF, "Preference Keys", NULL, NULL },
537
538 { SC_10_1, PREF, CURRENTSET, NULL, CFSTRING },
539 { SC_10_1, PREF, NETWORKSERVICES, NULL, CFDICTIONARY },
540 { SC_10_1, PREF, SETS, NULL, CFDICTIONARY },
541 { SC_10_1, PREF, SYSTEM, NULL, CFDICTIONARY },
542 { COMMENT, "", NULL, NULL, NULL },
543
544 { GROUP_PRIVATE, PREF, "Preference Keys", NULL, NULL },
545
546 { SC_10_5_PRIVATE, PREF, VIRTUALNETWORKINTERFACES, NULL, CFDICTIONARY },
547 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
548
549 { GROUP, COMP, "Component Keys", NULL, NULL },
550
551 { SC_10_1, COMP, NETWORK, NULL, NULL },
552 { SC_10_1, COMP, SERVICE, NULL, NULL },
553 { SC_10_1, COMP, GLOBAL, NULL, NULL },
554 { SC_10_2, COMP, HOSTNAMES, NULL, NULL },
555 { SC_10_1, COMP, INTERFACE, NULL, NULL },
556 { SC_10_1, COMP, SYSTEM, NULL, NULL },
557 { SC_10_1, COMP, USERS, NULL, NULL },
558 { COMMENT, "", NULL, NULL, NULL },
559
560 { COMMENT, "--- Regex pattern which matches any component ---", NULL },
561 { SC_10_1, COMP, ANYREGEX, "[^/]+", NULL },
562 { COMMENT, "", NULL, NULL, NULL },
563
564 { GROUP, NETENT, "Network Entity Keys", NULL, NULL },
565
566 { SC_10_1, NETENT, AIRPORT, NULL, CFDICTIONARY },
567 { DEFINE, "#if", "!TARGET_OS_IPHONE", NULL, NULL },
568 { DEPRECATED_NO_HEADER, NETENT, APPLETALK, NULL, CFDICTIONARY },
569 { DEFINE, "#endif", "// !TARGET_OS_IPHONE", NULL, NULL },
570 { SC_10_1, NETENT, DHCP, NULL, CFDICTIONARY },
571 { SC_10_1, NETENT, DNS, NULL, CFDICTIONARY },
572 { SC_10_1, NETENT, ETHERNET, NULL, CFDICTIONARY },
573 { SC_10_3, NETENT, FIREWIRE, NULL, CFDICTIONARY },
574 { SC_10_1, NETENT, INTERFACE, NULL, CFDICTIONARY },
575 { SC_10_5, NETENT, IPSEC, NULL, CFDICTIONARY },
576 { SC_10_1, NETENT, IPV4, NULL, CFDICTIONARY },
577 { SC_10_1, NETENT, IPV6, NULL, CFDICTIONARY },
578 { SC_10_3, NETENT, L2TP, NULL, CFDICTIONARY },
579 { SC_10_1, NETENT, LINK, NULL, CFDICTIONARY },
580 { SC_10_1, NETENT, MODEM, NULL, CFDICTIONARY },
581 { DEFINE, "#if", "!TARGET_OS_IPHONE", NULL, NULL },
582 { DEPRECATED_NO_HEADER, NETENT, NETINFO, NULL, CFDICTIONARY },
583 { DEFINE, "#endif", "// !TARGET_OS_IPHONE", NULL, NULL },
584 { SC_10_1, NETENT, PPP, NULL, CFDICTIONARY },
585 { SC_10_1, NETENT, PPPOE, NULL, CFDICTIONARY },
586 { SC_10_3, NETENT, PPPSERIAL, NULL, CFDICTIONARY },
587 { SC_10_3_10_12_IPHONE_2_0_10_0, NETENT, PPTP, NULL, CFDICTIONARY },
588 { SC_10_1, NETENT, PROXIES, NULL, CFDICTIONARY },
589 { DEFINE, "#if", "!TARGET_OS_IPHONE", NULL, NULL },
590 { SC_10_5, NETENT, SMB, NULL, CFDICTIONARY },
591 { DEFINE, "#endif", "// !TARGET_OS_IPHONE", NULL, NULL },
592 { SC_10_3, NETENT, STF, NULL, CFDICTIONARY },
593 { COMMENT, "", NULL, NULL, NULL },
594
595 { GROUP_PRIVATE, NETENT, "Network Entity Keys", NULL, NULL },
596
597 { SC_10_10_IPHONE_7_0_PRIVATE, NETENT, ACTIVE DURINGSLEEP REQUESTED, NULL, CFDICTIONARY},
598 { SC_10_10_IPHONE_7_0_PRIVATE, NETENT, ACTIVE DURINGSLEEP SUPPORTED, NULL, CFDICTIONARY},
599 { SC_10_9_IPHONE_7_0_PRIVATE, NETENT, APP LAYER, NULL, CFDICTIONARY},
600 { SC_10_5_PRIVATE, NETENT, EAPOL, NULL, CFDICTIONARY },
601 { SC_10_10_IPHONE_8_0_PRIVATE, NETENT, IPV4 ROUTER ARP FAILURE, NULL, NULL},
602 { SC_10_10_IPHONE_8_0_PRIVATE, NETENT, IPV4 ROUTER ARP ALIVE, NULL, NULL},
603 { SC_10_13_IPHONE_11_0_PRIVATE, NETENT, IPV6 ROUTER EXPIRED, NULL, NULL},
604 { SC_10_9_IPHONE_7_0_PRIVATE, NETENT, LINKISSUES, NULL, CFDICTIONARY},
605 { SC_10_7_IPHONE_5_0_PRIVATE, NETENT, LINKQUALITY, NULL, CFDICTIONARY},
606 { SC_10_7_IPHONE_4_0_PRIVATE, NETENT, LOOPBACK, NULL, CFDICTIONARY },
607 { SC_10_13_IPHONE_11_0_PRIVATE, NETENT, NAT64 PREFIX REQUEST, NULL, NULL},
608 { SC_10_6_IPHONE_3_0_PRIVATE, NETENT, ONDEMAND, NULL, CFDICTIONARY },
609 { SC_10_13_IPHONE_10_0_PRIVATE, NETENT, QOSMARKING POLICY, NULL, CFDICTIONARY },
610 { SC_10_6_IPHONE_2_0_PRIVATE, NETENT, SERVICE, "__SERVICE__", CFDICTIONARY },
611 { SC_10_7_IPHONE_4_0_PRIVATE, NETENT, VPN, NULL, CFDICTIONARY },
612 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
613
614 { GROUP, NETPROP, KEY_PREFIX COMP NETWORK " Properties", NULL, NULL },
615
616 { SC_10_2, NETPROP, OVERRIDEPRIMARY, NULL, CFNUMBER_BOOL },
617 { SC_10_1, NETPROP, SERVICE ORDER, NULL, CFARRAY_CFSTRING },
618 { SC_10_1, NETPROP, PPP OVERRIDEPRIMARY, NULL, CFNUMBER_BOOL },
619 { COMMENT, "", NULL, NULL, NULL },
620
621 { GROUP, NETPROP INTERFACES, KEY_PREFIX COMP NETWORK INTERFACE " Properties", NULL, NULL },
622
623 { SC_10_2, NETPROP, INTERFACES, NULL, CFARRAY_CFSTRING },
624 { COMMENT, "", NULL, NULL, NULL },
625
626 { GROUP, NETPROP LOCALHOSTNAME, KEY_PREFIX COMP NETWORK HOSTNAMES " Properties", NULL, NULL },
627
628 { SC_10_2, NETPROP, LOCALHOSTNAME, NULL, CFSTRING },
629 { COMMENT, "", NULL, NULL, NULL },
630
631 { GROUP_DEPRECATED, NETPROP AIRPORT, KEY_PREFIX NETENT AIRPORT " (Hardware) Entity Keys", NULL, NULL },
632
633 { SC_10_2_10_9, NETPROP AIRPORT, ALLOWNETCREATION, NULL, CFNUMBER_BOOL },
634 { SC_10_1_10_9, NETPROP AIRPORT, AUTH PASSWORD, NULL, CFDATA },
635 { SC_10_1_10_9, NETPROP AIRPORT, AUTH PASSWORD ENCRYPTION, NULL, CFSTRING },
636 { SC_10_2_10_9, NETPROP AIRPORT, JOIN MODE, NULL, CFSTRING },
637 { SC_10_1_10_9, NETPROP AIRPORT, POWER ENABLED, NULL, CFNUMBER_BOOL },
638 { SC_10_1_10_9, NETPROP AIRPORT, PREFERRED NETWORK, NULL, CFSTRING },
639 { SC_10_2_10_9, NETPROP AIRPORT, SAVEPASSWORDS, NULL, CFNUMBER_BOOL },
640 { COMMENT_DEPRECATED, "", NULL, NULL, NULL },
641 { COMMENT_DEPRECATED, "--- " KEY_PREFIX NETPROP AIRPORT JOIN MODE " values ---", NULL, NULL, NULL },
642 { SC_10_3_10_9, NETVAL AIRPORT JOIN MODE, AUTOMATIC, NULL, NULL },
643 { SC_10_2_10_9, NETVAL AIRPORT JOIN MODE, PREFERRED, NULL, NULL },
644 { SC_10_4_10_9, NETVAL AIRPORT JOIN MODE, RANKED, NULL, NULL },
645 { SC_10_2_10_9, NETVAL AIRPORT JOIN MODE, RECENT, NULL, NULL },
646 { SC_10_2_10_9, NETVAL AIRPORT JOIN MODE, STRONGEST, NULL, NULL },
647 { COMMENT_DEPRECATED, "", NULL, NULL, NULL },
648 { COMMENT_DEPRECATED, "--- " KEY_PREFIX NETPROP AIRPORT PASSWORD ENCRYPTION " values ---", NULL, NULL, NULL },
649 { SC_10_3_10_9, NETVAL AIRPORT AUTH PASSWORD ENCRYPTION, KEYCHAIN, NULL, NULL },
650 { COMMENT_DEPRECATED, "", NULL, NULL, NULL },
651
652 { GROUP_DEPRECATED_NO_HEADER, NETPROP APPLETALK, KEY_PREFIX NETENT APPLETALK " Entity Keys", NULL, NULL },
653
654 { DEFINE, "#if", "!TARGET_OS_IPHONE", NULL, NULL },
655 // { DEPRECATED_NO_HEADER, NETPROP APPLETALK, COMPUTERNAME, NULL, CFSTRING },
656 // { DEPRECATED_NO_HEADER, NETPROP APPLETALK, COMPUTERNAME ENCODING, NULL, CFNUMBER },
657 { DEPRECATED_NO_HEADER, NETPROP APPLETALK, CONFIGMETHOD, NULL, CFSTRING },
658 { DEPRECATED_NO_HEADER, NETPROP APPLETALK, DEFAULTZONE, NULL, CFSTRING },
659 { DEPRECATED_NO_HEADER, NETPROP APPLETALK, NETWORKID, NULL, CFNUMBER },
660 // { DEPRECATED_NO_HEADER, NETPROP APPLETALK, NETWORKRANGE, NULL, CFARRAY_CFNUMBER },
661 { DEPRECATED_NO_HEADER, NETPROP APPLETALK, NODEID, NULL, CFNUMBER },
662 // { DEPRECATED_NO_HEADER, NETPROP APPLETALK, SEEDNETWORKRANGE, NULL, CFARRAY_CFNUMBER },
663 // { DEPRECATED_NO_HEADER, NETPROP APPLETALK, SEEDZONES, NULL, CFARRAY_CFSTRING },
664 { COMMENT_DEPRECATED_NO_HEADER, "", NULL, NULL, NULL },
665 { COMMENT_DEPRECATED_NO_HEADER, "--- " KEY_PREFIX NETPROP APPLETALK CONFIGMETHOD " values ---", NULL, NULL, NULL },
666 { DEPRECATED_NO_HEADER, NETVAL APPLETALK CONFIGMETHOD, NODE, NULL, NULL },
667 // { DEPRECATED_NO_HEADER, NETVAL APPLETALK CONFIGMETHOD, ROUTER, NULL, NULL },
668 // { DEPRECATED_NO_HEADER, NETVAL APPLETALK CONFIGMETHOD, SEEDROUTER, NULL, NULL },
669 { DEFINE, "#endif", "// !TARGET_OS_IPHONE", NULL, NULL },
670 { COMMENT_DEPRECATED_NO_HEADER, "", NULL, NULL, NULL },
671
672
673 { GROUP, NETPROP DNS, KEY_PREFIX NETENT DNS " Entity Keys", NULL, NULL },
674
675 { SC_10_1, NETPROP DNS, DOMAIN NAME, NULL, CFSTRING },
676 { SC_10_4, NETPROP DNS, OPTIONS, NULL, CFSTRING },
677 { SC_10_1, NETPROP DNS, SEARCH DOMAINS, NULL, CFARRAY_CFSTRING},
678 { SC_10_4, NETPROP DNS, SEARCH ORDER, NULL, CFNUMBER},
679 { SC_10_1, NETPROP DNS, SERVER ADDRESSES, NULL, CFARRAY_CFSTRING },
680 { SC_10_4, NETPROP DNS, SERVER PORT, NULL, CFNUMBER },
681 { SC_10_4, NETPROP DNS, SERVER TIMEOUT, NULL, CFNUMBER },
682 { SC_10_1, NETPROP DNS, SORTLIST, NULL, CFARRAY_CFSTRING },
683 { SC_10_4, NETPROP DNS, SUPPLEMENTAL MATCH DOMAINS, NULL, CFARRAY_CFSTRING},
684 { SC_10_4, NETPROP DNS, SUPPLEMENTAL MATCH ORDERS, NULL, CFARRAY_CFNUMBER},
685 { COMMENT, "", NULL, NULL, NULL },
686
687 { GROUP_PRIVATE, NETPROP DNS, KEY_PREFIX NETENT DNS " Entity Keys", NULL, NULL },
688
689 { SC_10_11_IPHONE_9_0_PRIVATE, NETPROP DNS, CONFIRMED SERVICEID, NULL, CFSTRING },
690 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP DNS, SERVICE IDENTIFIER, NULL, CFNUMBER },
691 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP DNS, SUPPLEMENTAL MATCH DOMAINS NO SEARCH, NULL, CFNUMBER_BOOL},
692 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
693
694 { GROUP, NETPROP ETHERNET, KEY_PREFIX NETENT ETHERNET " (Hardware) Entity Keys", NULL, NULL },
695
696 { SC_10_2, NETPROP ETHERNET, MEDIA SUBTYPE, NULL, CFSTRING },
697 { SC_10_2, NETPROP ETHERNET, MEDIA OPTIONS, NULL, CFARRAY_CFSTRING },
698 { SC_10_2, NETPROP ETHERNET, MTU, NULL, CFNUMBER },
699 { COMMENT, "", NULL, NULL, NULL },
700
701 { GROUP_PRIVATE, NETPROP ETHERNET, KEY_PREFIX NETENT ETHERNET " (Hardware) Entity Keys", NULL, NULL },
702
703 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP ETHERNET, CAPABILITY AV, AV, CFNUMBER_BOOL },
704 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP ETHERNET, CAPABILITY JUMBO_MTU, JUMBO_MTU, CFNUMBER_BOOL },
705 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP ETHERNET, CAPABILITY LRO, LRO, CFNUMBER_BOOL },
706 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP ETHERNET, CAPABILITY RXCSUM, RXCSUM, CFNUMBER_BOOL },
707 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP ETHERNET, CAPABILITY TSO, TSO, CFNUMBER_BOOL },
708 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP ETHERNET, CAPABILITY TSO4, TSO4, CFNUMBER_BOOL },
709 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP ETHERNET, CAPABILITY TSO6, TSO6, CFNUMBER_BOOL },
710 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP ETHERNET, CAPABILITY TXCSUM, TXCSUM, CFNUMBER_BOOL },
711 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP ETHERNET, CAPABILITY VLAN_HWTAGGING, VLAN_HWTAGGING, CFNUMBER_BOOL },
712 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP ETHERNET, CAPABILITY VLAN_MTU, VLAN_MTU, CFNUMBER_BOOL },
713 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
714
715 { GROUP, NETPROP FIREWIRE, KEY_PREFIX NETENT FIREWIRE " (Hardware) Entity Keys", NULL, NULL },
716
717 { COMMENT, "* RESERVED FOR FUTURE USE *", NULL, NULL, NULL },
718 { COMMENT, "", NULL, NULL, NULL },
719
720 { GROUP, NETPROP INTERFACE, KEY_PREFIX NETENT INTERFACE " Entity Keys", NULL, NULL },
721
722 { SC_10_1, NETPROP INTERFACE, DEVICENAME, NULL, CFSTRING },
723 { SC_10_1, NETPROP INTERFACE, HARDWARE, NULL, CFSTRING },
724 { SC_10_1, NETPROP INTERFACE, TYPE, NULL, CFSTRING },
725 { SC_10_1, NETPROP INTERFACE, SUBTYPE, NULL, CFSTRING },
726 { SC_10_2_10_13, NETPROP INTERFACE, SUPPORTSMODEMONHOLD, NULL, CFNUMBER_BOOL },
727 { COMMENT, "", NULL, NULL, NULL },
728 { COMMENT, "--- " KEY_PREFIX NETPROP INTERFACE TYPE " values ---", NULL, NULL, NULL },
729 { SC_10_1, NETVAL INTERFACE TYPE, ETHERNET, NULL, NULL },
730 { SC_10_3, NETVAL INTERFACE TYPE, FIREWIRE, NULL, NULL },
731 { SC_10_1, NETVAL INTERFACE TYPE, PPP, NULL, NULL },
732 { SC_10_3, NETVAL INTERFACE TYPE, STF, NULL, NULL },
733 { SC_10_6_IPHONE_2_0, NETVAL INTERFACE TYPE, IPSEC, NULL, NULL },
734 { COMMENT, "", NULL, NULL, NULL },
735 { COMMENT, "--- " KEY_PREFIX NETPROP SERVICE SUBTYPE " values (for " PPP ") ---", NULL, NULL, NULL },
736 { SC_10_1, NETVAL INTERFACE SUBTYPE, PPPOE, NULL, NULL },
737 { SC_10_1, NETVAL INTERFACE SUBTYPE, PPPSERIAL, NULL, NULL },
738 { SC_10_2_10_12_IPHONE_2_0_10_0, NETVAL INTERFACE SUBTYPE, PPTP, NULL, NULL },
739 { SC_10_3, NETVAL INTERFACE SUBTYPE, L2TP, NULL, NULL },
740 { COMMENT, "", NULL, NULL, NULL },
741
742 { GROUP_PRIVATE, NETPROP INTERFACE, KEY_PREFIX NETENT INTERFACE " Entity Keys", NULL, NULL },
743
744 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP INTERFACE TYPE " values ---", NULL, NULL, NULL },
745 { SC_10_7_IPHONE_4_0_PRIVATE, NETVAL INTERFACE TYPE, LOOPBACK, NULL, NULL },
746 { SC_10_7_IPHONE_4_0_PRIVATE, NETVAL INTERFACE TYPE, VPN, NULL, NULL },
747 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
748
749 { GROUP, NETPROP IPSEC, KEY_PREFIX NETENT IPSEC " Entity Keys", NULL, NULL },
750
751 { SC_10_5, NETPROP IPSEC, AUTHENTICATIONMETHOD, NULL, CFSTRING },
752 { SC_10_5, NETPROP IPSEC, LOCALCERTIFICATE, NULL, CFDATA },
753 { SC_10_5, NETPROP IPSEC, LOCALIDENTIFIER, NULL, CFSTRING },
754 { SC_10_5, NETPROP IPSEC, LOCALIDENTIFIER TYPE, NULL, CFSTRING },
755 { SC_10_5, NETPROP IPSEC, SHAREDSECRET, NULL, CFSTRING },
756 { SC_10_5, NETPROP IPSEC, SHAREDSECRET ENCRYPTION, NULL, CFSTRING },
757 { SC_10_6_IPHONE_2_0, NETPROP IPSEC, CONNECTTIME, NULL, CFNUMBER },
758 { SC_10_6_IPHONE_2_0, NETPROP IPSEC, REMOTEADDRESS, NULL, CFSTRING },
759 { SC_10_6_IPHONE_2_0, NETPROP IPSEC, STATUS, STATUS, CFNUMBER },
760 { SC_10_6_IPHONE_2_0, NETPROP IPSEC, XAUTH ENABLED, NULL, CFNUMBER_BOOL },
761 { SC_10_6_IPHONE_2_0, NETPROP IPSEC, XAUTH NAME, NULL, CFSTRING },
762 { SC_10_6_IPHONE_2_0, NETPROP IPSEC, XAUTH PASSWORD, NULL, CFSTRING },
763 { SC_10_6_IPHONE_2_0, NETPROP IPSEC, XAUTH PASSWORD ENCRYPTION, NULL, CFSTRING },
764 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP IPSEC, DISCONNECTONWAKE, NULL, CFNUMBER_BOOL },
765 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP IPSEC, DISCONNECTONWAKETIMER, NULL, CFNUMBER },
766 { COMMENT, "", NULL, NULL, NULL },
767 { COMMENT, "--- " KEY_PREFIX NETPROP IPSEC AUTHENTICATIONMETHOD " values ---", NULL, NULL, NULL },
768 { SC_10_5, NETVAL IPSEC AUTHENTICATIONMETHOD, SHAREDSECRET, NULL, NULL },
769 { SC_10_5, NETVAL IPSEC AUTHENTICATIONMETHOD, CERTIFICATE, NULL, NULL },
770 { SC_10_5, NETVAL IPSEC AUTHENTICATIONMETHOD, HYBRID, NULL, NULL },
771 { COMMENT, "", NULL, NULL, NULL },
772 { COMMENT, "--- " KEY_PREFIX NETPROP IPSEC LOCALIDENTIFIER TYPE " values ---", NULL, NULL, NULL },
773 { SC_10_5, NETVAL IPSEC LOCALIDENTIFIER TYPE, KEYID, NULL, NULL },
774 { COMMENT, "", NULL, NULL, NULL },
775 { COMMENT, "--- " KEY_PREFIX NETPROP IPSEC SHAREDSECRET ENCRYPTION " values ---", NULL, NULL, NULL },
776 { SC_10_5, NETVAL IPSEC SHAREDSECRET ENCRYPTION, KEYCHAIN, NULL, NULL },
777 { COMMENT, "", NULL, NULL, NULL },
778 { COMMENT, "--- " KEY_PREFIX NETPROP IPSEC XAUTH PASSWORD ENCRYPTION " values ---", NULL, NULL, NULL },
779 { SC_10_6_IPHONE_2_0, NETVAL IPSEC XAUTH PASSWORD ENCRYPTION, KEYCHAIN, NULL, NULL },
780 { SC_10_6_IPHONE_3_0, NETVAL IPSEC XAUTH PASSWORD ENCRYPTION, PROMPT, NULL, NULL },
781 { COMMENT, "", NULL, NULL, NULL },
782
783 { GROUP_PRIVATE, NETPROP IPSEC, KEY_PREFIX NETENT IPSEC " Entity Keys", NULL, NULL },
784
785 { SC_10_6_IPHONE_3_0_PRIVATE, NETPROP IPSEC, LAST CAUSE, NULL, CFNUMBER },
786 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
787 { COMMENT_PRIVATE, "--- " ONDEMAND ": ---", NULL, NULL, NULL },
788 { SC_10_6_IPHONE_3_0_PRIVATE, NETPROP IPSEC, ONDEMAND ENABLED, NULL, CFNUMBER_BOOL },
789 { SC_10_6_IPHONE_3_0_PRIVATE, NETPROP IPSEC, ONDEMAND MATCH DOMAINS ALWAYS, NULL, CFARRAY_CFSTRING },
790 { SC_10_6_IPHONE_3_0_PRIVATE, NETPROP IPSEC, ONDEMAND MATCH DOMAINS ONRETRY, NULL, CFARRAY_CFSTRING },
791 { SC_10_6_IPHONE_3_0_PRIVATE, NETPROP IPSEC, ONDEMAND MATCH DOMAINS NEVER, NULL, CFARRAY_CFSTRING },
792 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
793
794 { GROUP, NETPROP IPV4, KEY_PREFIX NETENT IPV4 " Entity Keys", NULL, NULL },
795
796 { SC_10_1, NETPROP IPV4, ADDRESSES, NULL, CFARRAY_CFSTRING },
797 { SC_10_1, NETPROP IPV4, CONFIGMETHOD, NULL, CFSTRING },
798 { SC_10_1, NETPROP IPV4, DHCPCLIENTID, NULL, CFSTRING },
799 { SC_10_1, NETPROP IPV4, ROUTER, NULL, CFSTRING },
800 { SC_10_1, NETPROP IPV4, SUBNETMASKS, NULL, CFARRAY_CFSTRING },
801 { SC_10_1, NETPROP IPV4, DEST ADDRESSES, NULL, CFARRAY_CFSTRING },
802 { SC_10_1, NETPROP IPV4, BROADCAST ADDRESSES, NULL, CFARRAY_CFSTRING },
803 { COMMENT, "", NULL, NULL, NULL },
804 { COMMENT, "--- " KEY_PREFIX NETPROP IPV4 CONFIGMETHOD " values ---", NULL, NULL, NULL },
805 { SC_10_6_IPHONE_2_0, NETVAL IPV4 CONFIGMETHOD, AUTOMATIC, NULL, NULL },
806 { SC_10_1, NETVAL IPV4 CONFIGMETHOD, BOOTP, NULL, NULL },
807 { SC_10_1, NETVAL IPV4 CONFIGMETHOD, DHCP, NULL, NULL },
808 { SC_10_1, NETVAL IPV4 CONFIGMETHOD, INFORM, NULL, NULL },
809 { SC_10_2, NETVAL IPV4 CONFIGMETHOD, LINKLOCAL, NULL, NULL },
810 { SC_10_1, NETVAL IPV4 CONFIGMETHOD, MANUAL, NULL, NULL },
811 { SC_10_1, NETVAL IPV4 CONFIGMETHOD, PPP, NULL, NULL },
812 { COMMENT, "", NULL, NULL, NULL },
813
814 { GROUP_PRIVATE, NETPROP IPV4, KEY_PREFIX NETENT IPV4 " Entity Keys", NULL, NULL },
815 { SC_10_10_IPHONE_8_0_PRIVATE, NETPROP IPV4, ADDITIONAL ROUTES, NULL, CFARRAY_CFDICTIONARY },
816 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP IPV4, EXCLUDED ROUTES, NULL, CFARRAY_CFDICTIONARY },
817 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP IPV4, INCLUDED ROUTES, NULL, CFARRAY_CFDICTIONARY },
818 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
819 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP IPV4 CONFIGMETHOD " values ---", NULL, NULL, NULL },
820 { SC_10_5_PRIVATE, NETVAL IPV4 CONFIGMETHOD, FAILOVER, NULL, NULL },
821 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
822 { COMMENT_PRIVATE,
823 "--- "
824 KEY_PREFIX NETPROP IPV4 ADDITIONAL ROUTES ", "
825 KEY_PREFIX NETPROP IPV4 EXCLUDED ROUTES ", "
826 KEY_PREFIX NETPROP IPV4 INCLUDED ROUTES
827 " [CFDictionary] keys ---", NULL, NULL, NULL },
828 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP IPV4 ROUTE, DESTINATION ADDRESS, NULL, CFSTRING },
829 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP IPV4 ROUTE, SUBNETMASK, NULL, CFSTRING },
830 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP IPV4 ROUTE, GATEWAY ADDRESS, NULL, CFSTRING },
831 { SC_10_10_IPHONE_8_0_PRIVATE, NETPROP IPV4 ROUTE, INTERFACENAME, NULL, CFSTRING },
832 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
833 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP IPV4, ARP RESOLVED HARDWARE ADDRESS, NULL, CFSTRING },
834 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP IPV4, ARP RESOLVED IP ADDRESS, NULL, CFSTRING },
835 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
836
837 { GROUP, NETPROP IPV6, KEY_PREFIX NETENT IPV6 " Entity Keys", NULL, NULL },
838
839 { SC_10_1, NETPROP IPV6, ADDRESSES, NULL, CFARRAY_CFSTRING },
840 { SC_10_1, NETPROP IPV6, CONFIGMETHOD, NULL, CFSTRING },
841 { SC_10_3, NETPROP IPV6, DEST ADDRESSES, NULL, CFARRAY_CFSTRING },
842 { SC_10_3, NETPROP IPV6, FLAGS, NULL, CFNUMBER },
843 { SC_10_3, NETPROP IPV6, PREFIXLENGTH, NULL, CFARRAY_CFNUMBER },
844 { SC_10_3, NETPROP IPV6, ROUTER, NULL, CFSTRING },
845 { COMMENT, "", NULL, NULL, NULL },
846 { COMMENT, "--- " KEY_PREFIX NETPROP IPV6 CONFIGMETHOD " values ---", NULL, NULL, NULL },
847 { SC_10_3, NETVAL IPV6 CONFIGMETHOD, AUTOMATIC, NULL, NULL },
848 { SC_10_7_IPHONE_4_0, NETVAL IPV6 CONFIGMETHOD, LINKLOCAL, NULL, NULL },
849 { SC_10_3, NETVAL IPV6 CONFIGMETHOD, MANUAL, NULL, NULL },
850 { SC_10_3, NETVAL IPV6 CONFIGMETHOD, ROUTERADVERTISEMENT, NULL, NULL },
851 { SC_10_3, NETVAL IPV6 CONFIGMETHOD, STF, NULL, NULL },
852 { COMMENT, "", NULL, NULL, NULL },
853
854 { GROUP_PRIVATE, NETPROP IPV6, KEY_PREFIX NETENT IPV6 " Entity Keys", NULL, NULL },
855 { SC_10_10_IPHONE_8_0_PRIVATE, NETPROP IPV6, ADDITIONAL ROUTES, NULL, CFARRAY_CFDICTIONARY },
856 { SC_10_12_IPHONE_10_0_PRIVATE, NETPROP IPV6, ENABLE CGA, NULL, CFNUMBER_BOOL },
857 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP IPV6, EXCLUDED ROUTES, NULL, CFARRAY_CFDICTIONARY },
858 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP IPV6, INCLUDED ROUTES, NULL, CFARRAY_CFDICTIONARY },
859 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
860 { COMMENT_PRIVATE,
861 "--- "
862 KEY_PREFIX NETPROP IPV6 ADDITIONAL ROUTES ", "
863 KEY_PREFIX NETPROP IPV6 INCLUDED ROUTES ", "
864 KEY_PREFIX NETPROP IPV6 EXCLUDED ROUTES
865 " [CFDictionary] keys ---", NULL, NULL, NULL },
866 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP IPV6 ROUTE, DESTINATION ADDRESS, NULL, CFSTRING },
867 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP IPV6 ROUTE, PREFIXLENGTH, NULL, CFNUMBER },
868 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP IPV6 ROUTE, GATEWAY ADDRESS, NULL, CFSTRING },
869 { SC_10_10_IPHONE_8_0_PRIVATE, NETPROP IPV6 ROUTE, INTERFACENAME, NULL, CFSTRING },
870 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
871
872 { GROUP, NETPROP STF, KEY_PREFIX NETENT STF " Entity Keys", NULL, NULL },
873
874 { SC_10_3, NETPROP STF, RELAY, NULL, CFSTRING },
875 { COMMENT, "", NULL, NULL, NULL },
876
877 { GROUP, NETPROP LINK, KEY_PREFIX NETENT LINK " Entity Keys", NULL, NULL },
878
879 { SC_10_1, NETPROP LINK, ACTIVE, NULL, CFBOOLEAN },
880 { SC_10_2, NETPROP LINK, DETACHING, NULL, CFBOOLEAN },
881 { COMMENT, "", NULL, NULL, NULL },
882
883 { GROUP_PRIVATE, NETPROP LINK, KEY_PREFIX NETENT LINK " Entity Keys", NULL, NULL },
884 { SC_10_10_IPHONE_8_0_PRIVATE, NETPROP LINK, EXPENSIVE, NULL, CFBOOLEAN },
885 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
886
887 { GROUP_PRIVATE, NETPROP LINK, KEY_PREFIX NETENT LINKISSUES " Entity Keys", NULL, NULL },
888
889 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP LINKISSUES, MODULEID, NULL, CFDATA },
890 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP LINKISSUES, INFO, NULL, CFDATA },
891 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP LINKISSUES, TIMESTAMP, NULL, CFDATE },
892 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
893
894 { GROUP_PRIVATE, NETPROP LINK, KEY_PREFIX NETENT LINKQUALITY " Entity Keys", NULL, NULL },
895
896 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP, LINKQUALITY, NULL, CFNUMBER},
897 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
898
899 { GROUP, NETPROP MODEM, KEY_PREFIX NETENT MODEM " (Hardware) Entity Keys", NULL, NULL },
900
901 { SC_10_5, NETPROP MODEM, ACCESSPOINTNAME, NULL, CFSTRING },
902 { SC_10_5, NETPROP MODEM, CONNECTION PERSONALITY, NULL, CFSTRING },
903 { SC_10_1, NETPROP MODEM, CONNECTION SCRIPT, NULL, CFSTRING },
904 { SC_10_2, NETPROP MODEM, CONNECTSPEED, NULL, CFNUMBER },
905 { SC_10_1, NETPROP MODEM, DATACOMPRESSION, NULL, CFNUMBER_BOOL },
906 { SC_10_5, NETPROP MODEM, DEVICE CONTEXTID, NULL, CFSTRING },
907 { SC_10_5, NETPROP MODEM, DEVICE MODEL, NULL, CFSTRING },
908 { SC_10_5, NETPROP MODEM, DEVICE VENDOR, NULL, CFSTRING },
909 { SC_10_1, NETPROP MODEM, DIALMODE, NULL, CFSTRING },
910 { SC_10_1, NETPROP MODEM, ERRORCORRECTION, NULL, CFNUMBER_BOOL },
911 { SC_10_2, NETPROP MODEM, HOLD CALLWAITINGAUDIBLEALERT, NULL, CFNUMBER_BOOL },
912 { SC_10_2, NETPROP MODEM, HOLD DISCONNECTONANSWER, NULL, CFNUMBER_BOOL },
913 { SC_10_2, NETPROP MODEM, HOLD ENABLED, NULL, CFNUMBER_BOOL },
914 { SC_10_2, NETPROP MODEM, HOLD REMINDER, NULL, CFNUMBER_BOOL },
915 { SC_10_2, NETPROP MODEM, HOLD REMINDERTIME, NULL, CFNUMBER },
916 { SC_10_2, NETPROP MODEM, NOTE, NULL, CFSTRING },
917 { SC_10_1, NETPROP MODEM, PULSEDIAL, NULL, CFNUMBER_BOOL },
918 { SC_10_1, NETPROP MODEM, SPEAKER, NULL, CFNUMBER_BOOL },
919 { SC_10_1, NETPROP MODEM, SPEED, NULL, CFNUMBER },
920 { COMMENT, "", NULL, NULL, NULL },
921 { COMMENT, "--- " KEY_PREFIX NETPROP MODEM DIALMODE " values ---", NULL, NULL, NULL },
922 { SC_10_1, NETVAL MODEM DIALMODE, IGNOREDIALTONE, NULL, NULL },
923 { SC_10_1, NETVAL MODEM DIALMODE, MANUAL, NULL, NULL },
924 { SC_10_1, NETVAL MODEM DIALMODE, WAITFORDIALTONE, NULL, NULL },
925 { COMMENT, "", NULL, NULL, NULL },
926
927 //{ GROUP_DEPRECATED_NO_HEADER, NETPROP NETINFO, KEY_PREFIX NETENT NETINFO " Entity Keys", NULL, NULL },
928 //
929 // { DEFINE, "#if", "!TARGET_OS_IPHONE", NULL, NULL },
930 // { DEPRECATED_NO_HEADER, NETPROP NETINFO, BINDINGMETHODS, NULL, CFSTRING },
931 // { DEPRECATED_NO_HEADER, NETPROP NETINFO, SERVER ADDRESSES, NULL, CFARRAY_CFSTRING },
932 // { DEPRECATED_NO_HEADER, NETPROP NETINFO, SERVER TAGS, NULL, CFARRAY_CFSTRING },
933 // { DEPRECATED_NO_HEADER, NETPROP NETINFO, BROADCAST SERVER TAG, NULL, CFSTRING },
934 // { COMMENT_DEPRECATED_NO_HEADER, "", NULL, NULL, NULL },
935 // { COMMENT_DEPRECATED_NO_HEADER, "--- " KEY_PREFIX NETPROP NETINFO BINDINGMETHODS " values ---", NULL, NULL, NULL },
936 // { DEPRECATED_NO_HEADER, NETVAL NETINFO BINDINGMETHODS, BROADCAST, NULL, NULL },
937 // { DEPRECATED_NO_HEADER, NETVAL NETINFO BINDINGMETHODS, DHCP, NULL, NULL },
938 // { DEPRECATED_NO_HEADER, NETVAL NETINFO BINDINGMETHODS, MANUAL, NULL, NULL },
939 // { COMMENT_DEPRECATED_NO_HEADER, "", NULL, NULL, NULL },
940 // { COMMENT_DEPRECATED_NO_HEADER, "--- " KEY_PREFIX NETPROP NETINFO BROADCAST SERVER TAG " default value ---", NULL, NULL, NULL },
941 // { DEPRECATED_NO_HEADER, NETVAL NETINFO, DEFAULT SERVER TAG, "network", NULL },
942 // { DEFINE, "#endif", "// !TARGET_OS_IPHONE", NULL, NULL },
943 // { COMMENT_DEPRECATED_NO_HEADER, "", NULL, NULL, NULL },
944
945 { GROUP, NETPROP PPP, KEY_PREFIX NETENT PPP " Entity Keys", NULL, NULL },
946
947 { SC_10_3, NETPROP PPP, ACSP ENABLED, NULL, CFNUMBER_BOOL },
948 { SC_10_2, NETPROP PPP, CONNECTTIME, NULL, CFNUMBER },
949 { SC_10_2, NETPROP PPP, DEVICE LAST CAUSE, NULL, CFNUMBER },
950 { SC_10_1, NETPROP PPP, DIALONDEMAND, NULL, CFNUMBER_BOOL },
951 { SC_10_4, NETPROP PPP, DISCONNECTONFASTUSERSWITCH, NULL, CFNUMBER_BOOL },
952 { SC_10_1, NETPROP PPP, DISCONNECTONIDLE, NULL, CFNUMBER_BOOL },
953 { SC_10_1, NETPROP PPP, DISCONNECTONIDLETIMER, NULL, CFNUMBER },
954 { SC_10_1, NETPROP PPP, DISCONNECTONLOGOUT, NULL, CFNUMBER_BOOL },
955 { SC_10_2, NETPROP PPP, DISCONNECTONSLEEP, NULL, CFNUMBER_BOOL },
956 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP PPP, DISCONNECTONWAKE, NULL, CFNUMBER_BOOL },
957 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP PPP, DISCONNECTONWAKETIMER, NULL, CFNUMBER },
958 { SC_10_3, NETPROP PPP, DISCONNECTTIME, NULL, CFNUMBER },
959 { SC_10_1, NETPROP PPP, IDLEREMINDERTIMER, NULL, CFNUMBER },
960 { SC_10_1, NETPROP PPP, IDLEREMINDER, NULL, CFNUMBER_BOOL },
961 { SC_10_2, NETPROP PPP, LAST CAUSE, NULL, CFNUMBER },
962 { SC_10_1, NETPROP PPP, LOGFILE, NULL, CFSTRING },
963 { SC_10_2, NETPROP PPP, PLUGINS, NULL, CFARRAY_CFSTRING },
964 { SC_10_3, NETPROP PPP, RETRYCONNECTTIME, NULL, CFNUMBER },
965 { SC_10_1, NETPROP PPP, SESSIONTIMER, NULL, CFNUMBER },
966 { SC_10_2, NETPROP PPP, STATUS, NULL, CFNUMBER },
967 { SC_10_2, NETPROP PPP, USE SESSIONTIMER, NULL, CFNUMBER_BOOL },
968 { SC_10_1, NETPROP PPP, VERBOSELOGGING, NULL, CFNUMBER_BOOL },
969 { COMMENT, "", NULL, NULL, NULL },
970
971 { COMMENT, "--- " AUTH ": ---", NULL, NULL, NULL },
972 { SC_10_3, NETPROP PPP, AUTH EAP PLUGINS, NULL, CFARRAY_CFSTRING },
973 { SC_10_1, NETPROP PPP, AUTH NAME, NULL, CFSTRING },
974 { SC_10_1, NETPROP PPP, AUTH PASSWORD, NULL, CFSTRING },
975 { SC_10_1, NETPROP PPP, AUTH PASSWORD ENCRYPTION, NULL, CFSTRING },
976 { SC_10_3, NETPROP PPP, AUTH PROMPT, NULL, CFSTRING },
977 { SC_10_1, NETPROP PPP, AUTH PROTOCOL, NULL, CFARRAY_CFSTRING },
978 { COMMENT, "", NULL, NULL, NULL },
979 { COMMENT, "--- " KEY_PREFIX NETPROP PPP AUTH PASSWORD ENCRYPTION " values ---", NULL, NULL, NULL },
980 { SC_10_3, NETVAL PPP AUTH PASSWORD ENCRYPTION, KEYCHAIN, NULL, NULL },
981 { SC_10_5, NETVAL PPP AUTH PASSWORD ENCRYPTION, TOKEN, NULL, NULL },
982 { COMMENT, "", NULL, NULL, NULL },
983 { COMMENT, "--- " KEY_PREFIX NETPROP PPP AUTH PROMPT " values ---", NULL, NULL, NULL },
984 { SC_10_3, NETVAL PPP AUTH PROMPT, BEFORE, NULL, CFSTRING },
985 { SC_10_3, NETVAL PPP AUTH PROMPT, AFTER, NULL, CFSTRING },
986 { COMMENT, "", NULL, NULL, NULL },
987 { COMMENT, "--- " KEY_PREFIX NETPROP PPP AUTH PROTOCOL " values ---", NULL, NULL, NULL },
988 { SC_10_1, NETVAL PPP AUTH PROTOCOL, CHAP, NULL, CFSTRING },
989 { SC_10_3, NETVAL PPP AUTH PROTOCOL, EAP, NULL, CFSTRING },
990 { SC_10_3, NETVAL PPP AUTH PROTOCOL, MSCHAP1, NULL, CFSTRING },
991 { SC_10_3, NETVAL PPP AUTH PROTOCOL, MSCHAP2, NULL, CFSTRING },
992 { SC_10_1, NETVAL PPP AUTH PROTOCOL, PAP, NULL, CFSTRING },
993 { COMMENT, "", NULL, NULL, NULL },
994
995 { COMMENT, "--- " COMM ": ---", NULL, NULL, NULL },
996 { SC_10_1, NETPROP PPP, COMM ALTERNATE REMOTEADDRESS, NULL, CFSTRING },
997 { SC_10_1, NETPROP PPP, COMM CONNECTDELAY, NULL, CFNUMBER },
998 { SC_10_1, NETPROP PPP, COMM DISPLAYTERMINALWINDOW, NULL, CFNUMBER_BOOL },
999 { SC_10_1, NETPROP PPP, COMM REDIALCOUNT, NULL, CFNUMBER },
1000 { SC_10_1, NETPROP PPP, COMM REDIAL ENABLED, NULL, CFNUMBER_BOOL },
1001 { SC_10_1, NETPROP PPP, COMM REDIALINTERVAL, NULL, CFNUMBER },
1002 { SC_10_1, NETPROP PPP, COMM REMOTEADDRESS, NULL, CFSTRING },
1003 { SC_10_1, NETPROP PPP, COMM TERMINALSCRIPT, NULL, CFSTRING },
1004 { SC_10_2, NETPROP PPP, COMM USE TERMINALSCRIPT, NULL, CFNUMBER_BOOL },
1005 { COMMENT, "", NULL, NULL, NULL },
1006
1007 { COMMENT, "--- " CCP ": ---", NULL, NULL, NULL },
1008 { SC_10_2, NETPROP PPP, CCP ENABLED, NULL, CFNUMBER_BOOL },
1009 { SC_10_4, NETPROP PPP, CCP MPPE40 ENABLED, NULL, CFNUMBER_BOOL },
1010 { SC_10_4, NETPROP PPP, CCP MPPE128 ENABLED, NULL, CFNUMBER_BOOL },
1011 { COMMENT, "", NULL, NULL, NULL },
1012
1013 { COMMENT, "--- " IPCP ": ---", NULL, NULL, NULL },
1014 { SC_10_1, NETPROP PPP, IPCP COMPRESSIONVJ, NULL, CFNUMBER_BOOL },
1015 { SC_10_4, NETPROP PPP, IPCP USE PEER DNS, NULL, CFNUMBER_BOOL },
1016 { COMMENT, "", NULL, NULL, NULL },
1017
1018 { COMMENT, "--- " LCP ": ---", NULL, NULL, NULL },
1019 { SC_10_1, NETPROP PPP, LCP ECHO ENABLED, NULL, CFNUMBER_BOOL },
1020 { SC_10_1, NETPROP PPP, LCP ECHOFAILURE, NULL, CFNUMBER },
1021 { SC_10_1, NETPROP PPP, LCP ECHOINTERVAL, NULL, CFNUMBER },
1022 { SC_10_1, NETPROP PPP, LCP COMPRESSIONACFIELD, NULL, CFNUMBER_BOOL },
1023 { SC_10_1, NETPROP PPP, LCP COMPRESSIONPFIELD, NULL, CFNUMBER_BOOL },
1024 { SC_10_1, NETPROP PPP, LCP MRU, NULL, CFNUMBER },
1025 { SC_10_1, NETPROP PPP, LCP MTU, NULL, CFNUMBER },
1026 { SC_10_1, NETPROP PPP, LCP RECEIVEACCM, NULL, CFNUMBER },
1027 { SC_10_1, NETPROP PPP, LCP TRANSMITACCM, NULL, CFNUMBER },
1028 { COMMENT, "", NULL, NULL, NULL },
1029
1030 { GROUP_PRIVATE, NETPROP PPP, KEY_PREFIX NETENT PPP " Entity Keys", NULL, NULL },
1031
1032 { COMMENT_PRIVATE, "--- " ONDEMAND ": ---", NULL, NULL, NULL },
1033 { SC_10_5_PRIVATE, NETPROP PPP, ONDEMAND DOMAINS, NULL, CFARRAY_CFSTRING },
1034 { SC_10_5_PRIVATE, NETPROP PPP, ONDEMAND ENABLED, NULL, CFNUMBER_BOOL },
1035 { SC_10_5_PRIVATE, NETPROP PPP, ONDEMAND HOSTNAME, NULL, CFSTRING }, // DEPRECATED, use kSCNetworkConnectionSelectionOptionOnDemandHostName
1036 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP PPP, ONDEMAND MATCH DOMAINS ALWAYS, NULL, CFARRAY_CFSTRING },
1037 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP PPP, ONDEMAND MATCH DOMAINS ONRETRY, NULL, CFARRAY_CFSTRING },
1038 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP PPP, ONDEMAND MATCH DOMAINS NEVER, NULL, CFARRAY_CFSTRING },
1039 { SC_10_5_PRIVATE, NETPROP PPP, ONDEMAND MODE, NULL, CFSTRING },
1040 { SC_10_5_PRIVATE, NETPROP PPP, ONDEMAND PRIORITY, NULL, CFSTRING },
1041 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1042 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP PPP ONDEMAND MODE " values ---", NULL, NULL, NULL },
1043 { SC_10_5_PRIVATE, NETVAL PPP ONDEMAND MODE, AGGRESSIVE, NULL, NULL },
1044 { SC_10_5_PRIVATE, NETVAL PPP ONDEMAND MODE, CONSERVATIVE, NULL, NULL },
1045 { SC_10_5_PRIVATE, NETVAL PPP ONDEMAND MODE, COMPATIBLE, NULL, NULL },
1046 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1047 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP PPP ONDEMAND PRIORITY " values ---", NULL, NULL, NULL },
1048 { SC_10_5_PRIVATE, NETVAL PPP ONDEMAND PRIORITY, DEFAULT, NULL, NULL },
1049 { SC_10_5_PRIVATE, NETVAL PPP ONDEMAND PRIORITY, HIGH, NULL, NULL },
1050 { SC_10_5_PRIVATE, NETVAL PPP ONDEMAND PRIORITY, LOW, NULL, NULL },
1051 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1052
1053 { GROUP, NETPROP PPPOE, KEY_PREFIX NETENT PPPOE " Entity Keys", NULL, NULL },
1054
1055 { COMMENT, "* RESERVED FOR FUTURE USE *", NULL, NULL, NULL },
1056 { COMMENT, "", NULL, NULL, NULL },
1057
1058 { GROUP, NETPROP PPPSERIAL, KEY_PREFIX NETENT PPPSERIAL " Entity Keys", NULL, NULL },
1059
1060 { COMMENT, "* RESERVED FOR FUTURE USE *", NULL, NULL, NULL },
1061 { COMMENT, "", NULL, NULL, NULL },
1062
1063 { GROUP, NETPROP L2TP, KEY_PREFIX NETENT L2TP " Entity Keys", NULL, NULL },
1064
1065 { SC_10_3, NETPROP L2TP, IPSEC SHAREDSECRET, NULL, CFSTRING },
1066 { SC_10_3, NETPROP L2TP, IPSEC SHAREDSECRET ENCRYPTION, NULL, CFSTRING },
1067 { SC_10_3, NETPROP L2TP, TRANSPORT, NULL, CFSTRING },
1068 { COMMENT, "", NULL, NULL, NULL },
1069 { COMMENT, "--- " KEY_PREFIX NETPROP L2TP IPSEC SHAREDSECRET ENCRYPTION " values ---", NULL, NULL, NULL },
1070 { SC_10_3, NETVAL L2TP IPSEC SHAREDSECRET ENCRYPTION, KEYCHAIN, NULL, NULL },
1071 { COMMENT, "", NULL, NULL, NULL },
1072 { COMMENT, "--- " KEY_PREFIX NETPROP L2TP TRANSPORT " values ---", NULL, NULL, NULL },
1073 { SC_10_3, NETVAL L2TP TRANSPORT, IP, NULL, NULL },
1074 { SC_10_3, NETVAL L2TP TRANSPORT, IPSEC, NULL, NULL },
1075 { COMMENT, "", NULL, NULL, NULL },
1076
1077 { GROUP, NETPROP PROXIES, KEY_PREFIX NETENT PROXIES " Entity Keys", NULL, NULL },
1078
1079 { SC_10_1, NETPROP PROXIES, EXCEPTIONSLIST, NULL, CFARRAY_CFSTRING },
1080 { SC_10_4, NETPROP PROXIES, EXCLUDESIMPLEHOSTNAMES, NULL, CFNUMBER_BOOL },
1081 { SC_10_1, NETPROP PROXIES, FTP ENABLE, NULL, CFNUMBER_BOOL },
1082 { SC_10_1, NETPROP PROXIES, FTP PASSIVE, NULL, CFNUMBER_BOOL },
1083 { SC_10_1, NETPROP PROXIES, FTP PORT, NULL, CFNUMBER },
1084 { SC_10_1, NETPROP PROXIES, FTP PROXY, NULL, CFSTRING },
1085 { SC_10_1, NETPROP PROXIES, GOPHER ENABLE, NULL, CFNUMBER_BOOL },
1086 { SC_10_1, NETPROP PROXIES, GOPHER PORT, NULL, CFNUMBER },
1087 { SC_10_1, NETPROP PROXIES, GOPHER PROXY, NULL, CFSTRING },
1088 { SC_10_1, NETPROP PROXIES, HTTP ENABLE, NULL, CFNUMBER_BOOL },
1089 { SC_10_1, NETPROP PROXIES, HTTP PORT, NULL, CFNUMBER },
1090 { SC_10_1, NETPROP PROXIES, HTTP PROXY, NULL, CFSTRING },
1091 { SC_10_1, NETPROP PROXIES, HTTPS ENABLE, NULL, CFNUMBER_BOOL },
1092 { SC_10_1, NETPROP PROXIES, HTTPS PORT, NULL, CFNUMBER },
1093 { SC_10_1, NETPROP PROXIES, HTTPS PROXY, NULL, CFSTRING },
1094 { SC_10_1, NETPROP PROXIES, RTSP ENABLE, NULL, CFNUMBER_BOOL },
1095 { SC_10_1, NETPROP PROXIES, RTSP PORT, NULL, CFNUMBER },
1096 { SC_10_1, NETPROP PROXIES, RTSP PROXY, NULL, CFSTRING },
1097 { SC_10_1, NETPROP PROXIES, SOCKS ENABLE, NULL, CFNUMBER_BOOL },
1098 { SC_10_1, NETPROP PROXIES, SOCKS PORT, NULL, CFNUMBER },
1099 { SC_10_1, NETPROP PROXIES, SOCKS PROXY, NULL, CFSTRING },
1100 { SC_10_4, NETPROP PROXIES, PROXY AUTOCONFIG ENABLE, NULL, CFNUMBER_BOOL },
1101 { SC_10_7_IPHONE_4_0, NETPROP PROXIES, PROXY AUTOCONFIG JAVASCRIPT, NULL, CFSTRING },
1102 { SC_10_4, NETPROP PROXIES, PROXY AUTOCONFIG URLSTRING, NULL, CFSTRING },
1103 { SC_10_4, NETPROP PROXIES, PROXY AUTODISCOVERY ENABLE, NULL, CFNUMBER_BOOL },
1104 { COMMENT, "", NULL, NULL, NULL },
1105
1106 { GROUP_PRIVATE, NETPROP PROXIES, KEY_PREFIX NETENT PROXIES " Entity Keys", NULL, NULL },
1107
1108 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP PROXIES, BYPASS ALLOWED, NULL, CFNUMBER_BOOL },
1109 { SC_10_9_IPHONE_6_0_PRIVATE, NETPROP PROXIES, FALLBACK ALLOWED, NULL, CFNUMBER_BOOL },
1110 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP PROXIES, SUPPLEMENTAL MATCH DOMAINS, NULL, CFARRAY_CFSTRING},
1111 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP PROXIES, SUPPLEMENTAL MATCH ORDERS, NULL, CFARRAY_CFNUMBER},
1112 { SC_10_11_IPHONE_9_0_PRIVATE, NETPROP PROXIES, SERVICE SPECIFIC, NULL, CFNUMBER_BOOL },
1113 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1114 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP PROXIES, SCOPED, "__SCOPED__", CFDICTIONARY},
1115 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP PROXIES, SERVICES, "__SERVICES__", CFDICTIONARY},
1116 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP PROXIES, SUPPLEMENTAL, "__SUPPLEMENTAL__", CFARRAY_CFDICTIONARY},
1117 { SC_10_7_IPHONE_5_0_PRIVATE, NETPROP PROXIES, SUPPLEMENTAL MATCH DOMAIN, "__MATCH_DOMAIN__", CFSTRING},
1118 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1119
1120 { GROUP_PRIVATE, NETPROP LINK, KEY_PREFIX NETENT QOSMARKING POLICY " Entity Keys", NULL, NULL },
1121
1122 { SC_10_13_IPHONE_10_0_PRIVATE, NETPROP QOSMARKING, APPLE AUDIOVIDEOCALLS,
1123 QOSMARKING APPLE AUDIOVIDEOCALLS,
1124 CFBOOLEAN},
1125 { SC_10_13_IPHONE_10_0_PRIVATE, NETPROP QOSMARKING, ENABLED,
1126 QOSMARKING ENABLED,
1127 CFBOOLEAN},
1128 { SC_10_13_IPHONE_10_0_PRIVATE, NETPROP QOSMARKING, WHITELISTED APP IDENTIFIERS,
1129 QOSMARKING WHITELISTED APP IDENTIFIERS,
1130 CFARRAY_CFSTRING},
1131 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1132
1133 { GROUP_PRIVATE, NETPROP SERVICE, KEY_PREFIX NETENT SERVICE " Entity Keys", NULL, NULL },
1134
1135 { SC_10_6_IPHONE_2_0_PRIVATE, NETPROP SERVICE, PRIMARYRANK, NULL, CFSTRING },
1136 { SC_10_12_IPHONE_10_0_PRIVATE, NETPROP SERVICE, SERVICEINDEX, NULL, CFNUMBER },
1137 { SC_10_6_IPHONE_2_0_PRIVATE, NETPROP SERVICE, USERDEFINEDNAME, NULL, CFSTRING },
1138 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1139 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP SERVICE PRIMARYRANK " values ---", NULL, NULL, NULL },
1140 { SC_10_6_IPHONE_2_0_PRIVATE, NETVAL SERVICE PRIMARYRANK, FIRST, NULL },
1141 { SC_10_6_IPHONE_2_0_PRIVATE, NETVAL SERVICE PRIMARYRANK, LAST, NULL },
1142 { SC_10_6_IPHONE_2_0_PRIVATE, NETVAL SERVICE PRIMARYRANK, NEVER, NULL },
1143 { SC_10_10_IPHONE_8_0_PRIVATE, NETVAL SERVICE PRIMARYRANK, SCOPED, NULL },
1144 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1145
1146 { GROUP, NETPROP SMB, KEY_PREFIX NETENT SMB " Entity Keys", NULL, NULL },
1147
1148 { DEFINE, "#if", "!TARGET_OS_IPHONE", NULL, NULL },
1149 { SC_10_5, NETPROP SMB, NETBIOS NAME, NULL, CFSTRING },
1150 { SC_10_5, NETPROP SMB, NETBIOS NODE TYPE, NULL, CFSTRING },
1151 { SC_10_5_10_7, NETPROP SMB, NETBIOS SCOPE, NULL, CFSTRING },
1152 { SC_10_5, NETPROP SMB, WINS ADDRESSES, NULL, CFARRAY_CFSTRING },
1153 { SC_10_5, NETPROP SMB, WORKGROUP, NULL, CFSTRING },
1154 { COMMENT, "", NULL, NULL, NULL },
1155 { COMMENT, "--- " KEY_PREFIX NETPROP SMB NETBIOS NODE TYPE " values ---", NULL, NULL, NULL },
1156 { SC_10_5, NETVAL SMB NETBIOS NODE TYPE, BROADCAST, NULL },
1157 { SC_10_5, NETVAL SMB NETBIOS NODE TYPE, PEER, NULL },
1158 { SC_10_5, NETVAL SMB NETBIOS NODE TYPE, MIXED, NULL },
1159 { SC_10_5, NETVAL SMB NETBIOS NODE TYPE, HYBRID, NULL },
1160 { DEFINE, "#endif", "// !TARGET_OS_IPHONE", NULL, NULL },
1161 { COMMENT, "", NULL, NULL, NULL },
1162
1163 { GROUP_PRIVATE, NETPROP VPN, KEY_PREFIX NETENT VPN " Entity Keys", NULL, NULL },
1164
1165 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN, APP RULES, NULL, CFARRAY_CFDICTIONARY },
1166 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN, AUTH CREDENTIAL PASSWORD, NULL, CFSTRING },
1167 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, AUTH NAME, NULL, CFSTRING },
1168 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, AUTH PASSWORD, NULL, CFSTRING },
1169 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, AUTH PASSWORD ENCRYPTION, NULL, CFSTRING },
1170 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN, AUTH PASSWORD PLUGIN TYPE, NULL, CFSTRING },
1171 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, AUTHENTICATIONMETHOD, NULL, CFSTRING },
1172 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, CONNECTTIME, NULL, CFSTRING },
1173 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, DISCONNECTONFASTUSERSWITCH, NULL, CFNUMBER_BOOL },
1174 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, DISCONNECTONIDLE, NULL, CFNUMBER_BOOL },
1175 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, DISCONNECTONIDLETIMER, NULL, CFNUMBER },
1176 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, DISCONNECTONLOGOUT, NULL, CFNUMBER_BOOL },
1177 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, DISCONNECTONSLEEP, NULL, CFNUMBER_BOOL },
1178 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN, DISCONNECTONWAKE, NULL, CFNUMBER_BOOL },
1179 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN, DISCONNECTONWAKETIMER, NULL, CFNUMBER },
1180 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, LOCALCERTIFICATE, NULL, CFDATA },
1181 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, LOGFILE, NULL, CFSTRING },
1182 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, MTU, NULL, CFNUMBER },
1183 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, ONDEMAND ENABLED, NULL, CFNUMBER_BOOL },
1184 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN, ONDEMAND MATCH APP ENABLED, NULL, CFBOOLEAN },
1185 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, ONDEMAND MATCH DOMAINS ALWAYS, NULL, CFARRAY_CFSTRING },
1186 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, ONDEMAND MATCH DOMAINS ONRETRY, NULL, CFARRAY_CFSTRING },
1187 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, ONDEMAND MATCH DOMAINS NEVER, NULL, CFARRAY_CFSTRING },
1188 { SC_10_8_IPHONE_6_0_PRIVATE, NETPROP VPN, ONDEMAND RULES, NULL, CFARRAY_CFDICTIONARY },
1189 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN, ONDEMAND SUSPENDED, NULL, CFNUMBER },
1190 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN, PLUGIN CAPABILITY, NULL, CFSTRING },
1191 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, REMOTEADDRESS, NULL, CFSTRING },
1192 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, STATUS, NULL, CFNUMBER },
1193 { SC_10_7_IPHONE_4_0_PRIVATE, NETPROP VPN, VERBOSELOGGING, NULL, CFNUMBER_BOOL },
1194 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1195 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP VPN APP RULES " [CFDictionary] keys ---", NULL, NULL, NULL },
1196 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN APP RULE, ACCOUNT IDENTIFIER MATCH, NULL, CFARRAY_CFSTRING },
1197 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN APP RULE, DNS DOMAIN MATCH, NULL, CFARRAY_CFSTRING },
1198 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN APP RULE, EXECUTABLE MATCH, NULL, CFARRAY_CFDICTIONARY },
1199 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN APP RULE, IDENTIFIER, NULL, CFSTRING },
1200 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1201 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETVAL VPN APP RULE EXECUTABLE MATCH " [CFDictionary] keys ---", NULL, NULL, NULL },
1202 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN APP RULE EXECUTABLE, DESIGNATED REQUIREMENT, NULL, CFSTRING },
1203 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN APP RULE EXECUTABLE, SIGNING IDENTIFIER, NULL, CFSTRING },
1204 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN APP RULE EXECUTABLE, UUID, NULL, CFSTRING },
1205 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1206 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP VPN AUTHENTICATIONMETHOD " values ---", NULL, NULL, NULL },
1207 { SC_10_7_IPHONE_4_0_PRIVATE, NETVAL VPN AUTHENTICATIONMETHOD, PASSWORD, NULL, NULL },
1208 { SC_10_7_IPHONE_4_0_PRIVATE, NETVAL VPN AUTHENTICATIONMETHOD, CERTIFICATE, NULL, NULL },
1209 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1210 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP VPN AUTH PASSWORD ENCRYPTION " values ---", NULL, NULL, NULL },
1211 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN AUTH PASSWORD ENCRYPTION, EXTERNAL, NULL, NULL },
1212 { SC_10_7_IPHONE_4_0_PRIVATE, NETVAL VPN AUTH PASSWORD ENCRYPTION, KEYCHAIN, NULL, NULL },
1213 { SC_10_7_IPHONE_4_0_PRIVATE, NETVAL VPN AUTH PASSWORD ENCRYPTION, PROMPT, NULL, NULL },
1214 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1215 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP VPN ONDEMAND RULES " [CFDictionary] keys ---", NULL, NULL, NULL },
1216 { SC_10_8_IPHONE_6_0_PRIVATE, NETPROP VPN ONDEMAND RULE, ACTION, NULL, CFSTRING },
1217 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN ONDEMAND RULE, ACTION PARAMETERS, NULL, CFARRAY_CFDICTIONARY },
1218 { SC_10_8_IPHONE_6_0_PRIVATE, NETPROP VPN ONDEMAND RULE, DNS DOMAIN MATCH, NULL, CFARRAY_CFSTRING },
1219 { SC_10_8_IPHONE_6_0_PRIVATE, NETPROP VPN ONDEMAND RULE, DNS SERVER ADDRESS MATCH, NULL, CFARRAY_CFSTRING },
1220 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN ONDEMAND RULE, SSID MATCH, NULL, CFARRAY_CFSTRING },
1221 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN ONDEMAND RULE, INTERFACE TYPE MATCH, NULL, CFSTRING },
1222 { SC_10_8_IPHONE_6_0_PRIVATE, NETPROP VPN ONDEMAND RULE, URLSTRING PROBE, NULL, CFSTRING },
1223 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1224 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP VPN ONDEMAND RULE ACTION " values ---", NULL, NULL, NULL },
1225 { SC_10_8_IPHONE_6_0_PRIVATE, NETVAL VPN ONDEMAND RULE ACTION, ALLOW, NULL, NULL },
1226 { SC_10_8_IPHONE_6_0_PRIVATE, NETVAL VPN ONDEMAND RULE ACTION, IGNORE, NULL, NULL },
1227 { SC_10_8_IPHONE_6_0_PRIVATE, NETVAL VPN ONDEMAND RULE ACTION, CONNECT, NULL, NULL },
1228 { SC_10_8_IPHONE_6_0_PRIVATE, NETVAL VPN ONDEMAND RULE ACTION, DISCONNECT, NULL, NULL },
1229 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN ONDEMAND RULE ACTION, EVALUATE CONNECTION, NULL, NULL },
1230 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1231 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP VPN ONDEMAND RULE ACTION PARAMETERS " [CFDictionary] keys ---", NULL, NULL, NULL },
1232 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN ONDEMAND RULE ACTION PARAMETERS, DOMAIN ACTION, NULL, CFSTRING },
1233 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN ONDEMAND RULE ACTION PARAMETERS, DOMAINS, NULL, CFARRAY_CFSTRING },
1234 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN ONDEMAND RULE ACTION PARAMETERS, REQUIRED DNS SERVERS, NULL, CFARRAY_CFSTRING },
1235 { SC_10_9_IPHONE_7_0_PRIVATE, NETPROP VPN ONDEMAND RULE ACTION PARAMETERS, REQUIRED URLSTRING PROBE, NULL, CFSTRING },
1236 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1237 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP VPN ONDEMAND RULE ACTION PARAMETERS DOMAIN ACTION " values ---", NULL, NULL, NULL },
1238 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN ONDEMAND RULE ACTION PARAMETERS DOMAIN ACTION, CONNECT IFNEEDED, NULL, NULL },
1239 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN ONDEMAND RULE ACTION PARAMETERS DOMAIN ACTION, NEVER CONNECT, NULL, NULL },
1240 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1241 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP VPN ONDEMAND RULE INTERFACE TYPE MATCH " values ---", NULL, NULL, NULL },
1242 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN ONDEMAND RULE INTERFACE TYPE MATCH, ETHERNET, NULL, NULL },
1243 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN ONDEMAND RULE INTERFACE TYPE MATCH, WIFI, NULL, NULL },
1244 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1245 { COMMENT_PRIVATE, "--- " KEY_PREFIX NETPROP VPN PLUGIN CAPABILITY " values ---", NULL, NULL, NULL },
1246 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN PLUGIN CAPABILITY, AUTH, NULL, NULL },
1247 { SC_10_9_IPHONE_7_0_PRIVATE, NETVAL VPN PLUGIN CAPABILITY, CONNECT, NULL, NULL },
1248 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1249
1250 { GROUP, USERSENT CONSOLEUSER, KEY_PREFIX COMP USERS " Entity Keys", NULL, NULL },
1251
1252 { DEFINE, "#if", "!TARGET_OS_IPHONE", NULL, NULL },
1253 { SC_10_1, USERSENT, CONSOLEUSER, NULL, NULL },
1254 { DEFINE, "#endif", "// !TARGET_OS_IPHONE", NULL, NULL },
1255 { COMMENT, "", NULL, NULL, NULL },
1256
1257 { GROUP, SYSTEMPROP COMPUTERNAME, KEY_PREFIX COMP SYSTEM " Properties", NULL, NULL },
1258
1259 { SC_10_1, SYSTEMPROP, COMPUTERNAME, NULL, CFSTRING },
1260 { SC_10_1, SYSTEMPROP, COMPUTERNAME ENCODING, NULL, CFNUMBER },
1261 { COMMENT, "", NULL, NULL, NULL },
1262
1263 { GROUP_PRIVATE, SYSTEMPROP COMPUTERNAME, KEY_PREFIX COMP SYSTEM " Properties", NULL, NULL },
1264
1265 { SC_10_5_PRIVATE, SYSTEMPROP, COMPUTERNAME REGION, NULL, CFNUMBER },
1266 { SC_10_5_PRIVATE, SYSTEMPROP, HOSTNAME, NULL, CFSTRING },
1267 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1268
1269 { GROUP, DYNAMICSTORE DOMAIN, "SCDynamicStore \"domain\" prefixes", NULL, NULL },
1270
1271 { SC_10_1, DYNAMICSTORE DOMAIN, FILE, "File:", NULL },
1272 { SC_10_1, DYNAMICSTORE DOMAIN, PLUGIN, "Plugin:", NULL },
1273 { SC_10_1, DYNAMICSTORE DOMAIN, SETUP, "Setup:", NULL },
1274 { SC_10_1, DYNAMICSTORE DOMAIN, STATE, "State:", NULL },
1275 { SC_10_1, DYNAMICSTORE DOMAIN, PREFS, "Prefs:", NULL },
1276 { COMMENT, "", NULL, NULL, NULL },
1277
1278 { GROUP, DYNAMICSTORE SETUPPROP, "Preference (\"location\") Keys", NULL, NULL },
1279
1280 { SC_10_1, DYNAMICSTORE SETUPPROP, CURRENTSET, NULL, CFSTRING },
1281 { SC_10_1, DYNAMICSTORE SETUPPROP, LAST UPDATED, NULL, NULL },
1282 { COMMENT, "", NULL, NULL, NULL },
1283
1284 { GROUP, DYNAMICSTORE NETPROP, "Common/shared Keys", NULL, NULL },
1285
1286 { SC_10_1, DYNAMICSTORE NETPROP, INTERFACES, NULL, CFARRAY_CFSTRING },
1287 { SC_10_1, DYNAMICSTORE NETPROP, PRIMARYINTERFACE, NULL, CFSTRING },
1288 { SC_10_1, DYNAMICSTORE NETPROP, PRIMARYSERVICE, NULL, CFSTRING },
1289 { SC_10_1, DYNAMICSTORE NETPROP, SERVICEIDS, NULL, CFARRAY_CFSTRING },
1290 // { COMMENT, "", NULL, NULL, NULL },
1291
1292 { GROUP_PRIVATE, VIRTUALNETWORKINTERFACES, "Virtual Network Interface Keys", NULL, NULL },
1293
1294 { SC_10_5_PRIVATE, VIRTUALPROP BOND, INTERFACES, NULL, CFARRAY_CFSTRING },
1295 { SC_10_5_PRIVATE, VIRTUALPROP BOND, MODE, NULL, CFNUMBER },
1296 { SC_10_5_PRIVATE, VIRTUALPROP BOND, OPTIONS, NULL, CFDICTIONARY },
1297 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1298 { SC_10_7_IPHONE_4_0_PRIVATE, VIRTUALPROP BRIDGE, INTERFACES, NULL, CFARRAY_CFSTRING },
1299 { SC_10_7_IPHONE_4_0_PRIVATE, VIRTUALPROP BRIDGE, OPTIONS, NULL, CFDICTIONARY },
1300 { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1301 { SC_10_5_PRIVATE, VIRTUALPROP VLAN, INTERFACE, NULL, CFSTRING },
1302 { SC_10_5_PRIVATE, VIRTUALPROP VLAN, TAG, NULL, CFNUMBER },
1303 { SC_10_5_PRIVATE, VIRTUALPROP VLAN, OPTIONS, NULL, CFDICTIONARY },
1304 // { COMMENT_PRIVATE, "", NULL, NULL, NULL },
1305
1306 //{ GROUP, "DEPRECATED", "Deprecated schema definition keys", NULL, NULL },
1307
1308 { DEFINE, "#if", "!TARGET_OS_IPHONE", NULL, NULL },
1309 { SC_10_1_10_4, USERSPROP CONSOLEUSER, NAME, NULL, CFSTRING },
1310 { SC_10_1_10_4, USERSPROP CONSOLEUSER, UID, NULL, CFNUMBER },
1311 { SC_10_1_10_4, USERSPROP CONSOLEUSER, GID, NULL, CFNUMBER },
1312 { DEFINE, "#endif", "// !TARGET_OS_IPHONE", NULL, NULL },
1313 // { COMMENT, "", NULL, NULL, NULL },
1314
1315 { END, NULL, NULL, NULL, NULL },
1316 };
1317
1318 enum {
1319 gen_header_e,
1320 gen_comments_e,
1321 gen_comments_private_e,
1322 gen_headerdoc_e,
1323 gen_headerdoc_private_e,
1324 gen_cfile_e,
1325 };
1326
1327 void
1328 print_comment(schemaDefinition *def)
1329 {
1330 char kbuf[256];
1331 char vbuf[256];
1332
1333 snprintf(kbuf, sizeof(kbuf), KEY_PREFIX "%s%s",
1334 def->prefix, def->key);
1335 snprintf(vbuf, sizeof(vbuf), "\"%s\"",
1336 def->value ? def->value : def->key);
1337
1338 if (def->type)
1339 printf(" * %-50s %-30s %s\n",
1340 kbuf, vbuf, def->type);
1341 else
1342 printf(" * %-50s %s\n",
1343 kbuf, vbuf);
1344
1345 return;
1346 }
1347
1348 void
1349 print_define(schemaDefinition *def)
1350 {
1351 printf("%s\t%s\n", def->prefix, def->key);
1352 return;
1353 }
1354
1355 void
1356 print_headerdoc(schemaDefinition *def)
1357 {
1358 char kbuf[256];
1359 char vbuf[256];
1360
1361 snprintf(kbuf, sizeof(kbuf), KEY_PREFIX "%s%s",
1362 def->prefix, def->key);
1363
1364 snprintf(vbuf, sizeof(vbuf), "\"%s\"",
1365 def->value ? def->value : def->key);
1366
1367
1368 printf("\n");
1369 printf("/*!\n");
1370 printf(" @const %s\n", kbuf);
1371 if (def->type) {
1372 printf(" @discussion Value is a %s\n", def->type);
1373 }
1374 printf(" */\n");
1375 printf("extern const CFStringRef %-49s", kbuf);
1376 switch (def->control) {
1377 case SC_10_1:
1378 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_1,__IPHONE_2_0/*SPI*/);\n");
1379 break;
1380 case SC_10_2:
1381 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_2,__IPHONE_2_0/*SPI*/);\n");
1382 break;
1383 case SC_10_3:
1384 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_3,__IPHONE_2_0/*SPI*/);\n");
1385 break;
1386 case SC_10_1_10_4:
1387 printf(" __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_4,__IPHONE_NA,__IPHONE_NA);\n");
1388 break;
1389 case SC_10_4:
1390 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_4,__IPHONE_2_0/*SPI*/);\n");
1391 break;
1392 case SC_10_5:
1393 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_2_0/*SPI*/);\n");
1394 break;
1395 case SC_10_5_10_7:
1396 printf(" __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_5,__MAC_10_7,__IPHONE_NA,__IPHONE_NA);\n");
1397 break;
1398 case SC_10_5_PRIVATE:
1399 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_5,__IPHONE_2_0/*SPI*/);\n");
1400 break;
1401 case SC_10_1_10_9:
1402 printf(" __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1,__MAC_10_9,__IPHONE_2_0/*SPI*/,__IPHONE_FUTURE/*SPI*/);\n");
1403 break;
1404 case SC_10_2_10_9:
1405 printf(" __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_2,__MAC_10_9,__IPHONE_2_0/*SPI*/,__IPHONE_FUTURE/*SPI*/);\n");
1406 break;
1407 case SC_10_2_10_13:
1408 printf(" __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_2,__MAC_10_13,__IPHONE_2_0/*SPI*/,__IPHONE_FUTURE/*SPI*/);\n");
1409 break;
1410 case SC_10_3_10_9:
1411 printf(" __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_3,__MAC_10_9,__IPHONE_2_0/*SPI*/,__IPHONE_FUTURE/*SPI*/);\n");
1412 break;
1413 case SC_10_4_10_9:
1414 printf(" __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_4,__MAC_10_9,__IPHONE_2_0/*SPI*/,__IPHONE_FUTURE/*SPI*/);\n");
1415 break;
1416 case SC_10_2_10_12_IPHONE_2_0_10_0:
1417 printf(" __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_2,__MAC_10_12,__IPHONE_2_0/*SPI*/,__IPHONE_10_0/*SPI*/);\n");
1418 break;
1419 case SC_10_3_10_12_IPHONE_2_0_10_0:
1420 printf(" __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_3,__MAC_10_12,__IPHONE_2_0/*SPI*/,__IPHONE_10_0/*SPI*/);\n");
1421 break;
1422 case SC_10_6_IPHONE_2_0:
1423 case SC_10_6_IPHONE_2_0_PRIVATE:
1424 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_2_0/*SPI*/);\n");
1425 break;
1426 case SC_10_6_IPHONE_3_0:
1427 case SC_10_6_IPHONE_3_0_PRIVATE:
1428 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_6,__IPHONE_3_0/*SPI*/);\n");
1429 break;
1430 case SC_10_7_IPHONE_4_0:
1431 case SC_10_7_IPHONE_4_0_PRIVATE:
1432 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_4_0/*SPI*/);\n");
1433 break;
1434 case SC_10_7_IPHONE_5_0_PRIVATE:
1435 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_5_0/*SPI*/);\n");
1436 break;
1437 case SC_10_8_IPHONE_6_0_PRIVATE:
1438 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_8,__IPHONE_6_0/*SPI*/);\n");
1439 break;
1440 case SC_10_9_IPHONE_6_0_PRIVATE:
1441 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_9,__IPHONE_6_0/*SPI*/);\n");
1442 break;
1443 case SC_10_9_IPHONE_7_0_PRIVATE:
1444 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_9,__IPHONE_7_0/*SPI*/);\n");
1445 break;
1446 case SC_10_10_IPHONE_7_0_PRIVATE:
1447 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_10,__IPHONE_7_0/*SPI*/);\n");
1448 break;
1449 case SC_10_10_IPHONE_8_0_PRIVATE:
1450 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_10,__IPHONE_8_0/*SPI*/);\n");
1451 break;
1452 case SC_10_11_IPHONE_9_0_PRIVATE:
1453 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_11,__IPHONE_9_0/*SPI*/);\n");
1454 break;
1455 case SC_10_12_IPHONE_10_0_PRIVATE:
1456 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_12,__IPHONE_10_0/*SPI*/);\n");
1457 break;
1458 case SC_10_13_IPHONE_10_0_PRIVATE:
1459 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_13,__IPHONE_10_0/*SPI*/);\n");
1460 break;
1461 case SC_10_13_IPHONE_11_0_PRIVATE:
1462 printf(" __OSX_AVAILABLE_STARTING(__MAC_10_13,__IPHONE_11_0/*SPI*/);\n");
1463 break;
1464 case SC_IPHONE_2_0_PRIVATE:
1465 printf(" __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_2_0/*SPI*/);\n");
1466 break;
1467 default:
1468 printf("\n");
1469 break;
1470 }
1471
1472 printf("#define %s %s\n", kbuf, kbuf);
1473 return;
1474 }
1475
1476 void
1477 dump_names(int type)
1478 {
1479 int i;
1480
1481 for (i = 0; TRUE; i++) {
1482 switch (names[i].control) {
1483 case END: {
1484 goto done;
1485 }
1486
1487 case COMMENT: {
1488 switch (type) {
1489 case gen_comments_e:
1490 if (names[i].prefix) {
1491 if (strlen(names[i].prefix) > 0)
1492 printf(" * %s\n", names[i].prefix);
1493 else
1494 printf(" *\n");
1495 }
1496 break;
1497 default:
1498 break;
1499 }
1500 break;
1501 }
1502
1503 case COMMENT_PRIVATE: {
1504 switch (type) {
1505 case gen_comments_private_e:
1506 if (names[i].prefix) {
1507 if (strlen(names[i].prefix) > 0)
1508 printf(" * %s\n", names[i].prefix);
1509 else
1510 printf(" *\n");
1511 }
1512 break;
1513 default:
1514 break;
1515 }
1516 break;
1517 }
1518
1519 case COMMENT_DEPRECATED:
1520 case COMMENT_DEPRECATED_NO_HEADER: {
1521 break;
1522 }
1523
1524 case DEFINE: {
1525 switch (type) {
1526 case gen_cfile_e:
1527 if ((strcmp(names[i].prefix, "#if") == 0) ||
1528 (strcmp(names[i].prefix, "#ifdef") == 0) ||
1529 (strcmp(names[i].prefix, "#ifndef") == 0))
1530 printf("\n");
1531 print_define(&names[i]);
1532 if (strcmp(names[i].prefix, "#endif") == 0)
1533 printf("\n");
1534 break;
1535 default:
1536 break;
1537 }
1538 break;
1539 }
1540
1541 case DEFINE_PRIVATE: {
1542 switch (type) {
1543 case gen_cfile_e:
1544 if ((strcmp(names[i].prefix, "#if") == 0) ||
1545 (strcmp(names[i].prefix, "#ifdef") == 0) ||
1546 (strcmp(names[i].prefix, "#ifndef") == 0))
1547 printf("\n");
1548 print_define(&names[i]);
1549 if (strcmp(names[i].prefix, "#endif") == 0)
1550 printf("\n");
1551 break;
1552 default:
1553 break;
1554 }
1555 break;
1556 }
1557
1558 case GROUP:
1559 case GROUP_DEPRECATED: {
1560 switch (type) {
1561 case gen_comments_e:
1562 if (names[i].control == GROUP) {
1563 if (names[i].key)
1564 printf(" * %s\n *\n", names[i].key);
1565 }
1566 break;
1567 case gen_headerdoc_e:
1568 if (names[i].prefix)
1569 printf("\n/*!\n @group %s\n */\n", names[i].key);
1570 break;
1571 default:
1572 break;
1573 }
1574 break;
1575 }
1576
1577 case GROUP_DEPRECATED_NO_HEADER: {
1578 break;
1579 }
1580
1581 case GROUP_PRIVATE: {
1582 switch (type) {
1583 case gen_comments_private_e:
1584 if (names[i].key)
1585 printf(" * %s\n *\n", names[i].key);
1586 break;
1587 case gen_headerdoc_private_e:
1588 if (names[i].prefix)
1589 printf("\n/*!\n @group %s\n */\n", names[i].key);
1590 break;
1591 default:
1592 break;
1593 }
1594 break;
1595 }
1596
1597 default: {
1598 char kbuf[256];
1599 char vbuf[256];
1600
1601 switch (type) {
1602 case gen_header_e:
1603 snprintf(kbuf, sizeof(kbuf), KEY_PREFIX "%s%s",
1604 names[i].prefix, names[i].key);
1605
1606 if (names[i].value)
1607 snprintf(vbuf, sizeof(vbuf), "SCSTR(\"%s\")",
1608 names[i].value);
1609 else
1610 snprintf(vbuf, sizeof(vbuf), "SCSTR(\"%s\")",
1611 names[i].key);
1612
1613 printf("#define %-50s %s\n",
1614 kbuf, vbuf);
1615 break;
1616
1617 case gen_comments_e:
1618 switch (names[i].control) {
1619 case DEPRECATED_NO_HEADER:
1620 case SC_10_1_10_4:
1621 case SC_10_1_10_9:
1622 case SC_10_2_10_9:
1623 case SC_10_2_10_13:
1624 case SC_10_3_10_9:
1625 case SC_10_4_10_9:
1626 // don't report deprecated keys
1627 break;
1628 case SC_10_5_PRIVATE:
1629 case SC_10_6_IPHONE_2_0_PRIVATE:
1630 case SC_10_6_IPHONE_3_0_PRIVATE:
1631 case SC_10_7_IPHONE_4_0_PRIVATE:
1632 case SC_10_7_IPHONE_5_0_PRIVATE:
1633 case SC_10_8_IPHONE_6_0_PRIVATE:
1634 case SC_10_9_IPHONE_6_0_PRIVATE:
1635 case SC_10_9_IPHONE_7_0_PRIVATE:
1636 case SC_10_10_IPHONE_7_0_PRIVATE:
1637 case SC_10_10_IPHONE_8_0_PRIVATE:
1638 case SC_10_11_IPHONE_9_0_PRIVATE:
1639 case SC_10_12_IPHONE_10_0_PRIVATE:
1640 case SC_10_13_IPHONE_10_0_PRIVATE:
1641 case SC_10_13_IPHONE_11_0_PRIVATE:
1642 case SC_IPHONE_2_0_PRIVATE:
1643 // don't report private definitions
1644 break;
1645 default:
1646 print_comment(&names[i]);
1647 break;
1648 }
1649 break;
1650 case gen_comments_private_e:
1651 switch (names[i].control) {
1652 case DEPRECATED_NO_HEADER:
1653 case SC_10_1_10_4:
1654 case SC_10_1_10_9:
1655 case SC_10_2_10_9:
1656 case SC_10_2_10_13:
1657 case SC_10_3_10_9:
1658 case SC_10_4_10_9:
1659 // don't report deprecated keys
1660 break;
1661 case SC_10_5_PRIVATE:
1662 case SC_10_6_IPHONE_2_0_PRIVATE:
1663 case SC_10_6_IPHONE_3_0_PRIVATE:
1664 case SC_10_7_IPHONE_4_0_PRIVATE:
1665 case SC_10_7_IPHONE_5_0_PRIVATE:
1666 case SC_10_8_IPHONE_6_0_PRIVATE:
1667 case SC_10_9_IPHONE_6_0_PRIVATE:
1668 case SC_10_9_IPHONE_7_0_PRIVATE:
1669 case SC_10_10_IPHONE_7_0_PRIVATE:
1670 case SC_10_10_IPHONE_8_0_PRIVATE:
1671 case SC_10_11_IPHONE_9_0_PRIVATE:
1672 case SC_10_12_IPHONE_10_0_PRIVATE:
1673 case SC_10_13_IPHONE_10_0_PRIVATE:
1674 case SC_10_13_IPHONE_11_0_PRIVATE:
1675 case SC_IPHONE_2_0_PRIVATE:
1676 print_comment(&names[i]);
1677 break;
1678 default:
1679 // don't report public definitions
1680 break;
1681 }
1682 break;
1683
1684 case gen_headerdoc_e:
1685 switch (names[i].control) {
1686 case DEPRECATED_NO_HEADER:
1687 case SC_10_5_PRIVATE:
1688 case SC_10_6_IPHONE_2_0_PRIVATE:
1689 case SC_10_6_IPHONE_3_0_PRIVATE:
1690 case SC_10_7_IPHONE_4_0_PRIVATE:
1691 case SC_10_7_IPHONE_5_0_PRIVATE:
1692 case SC_10_8_IPHONE_6_0_PRIVATE:
1693 case SC_10_9_IPHONE_6_0_PRIVATE:
1694 case SC_10_9_IPHONE_7_0_PRIVATE:
1695 case SC_10_10_IPHONE_7_0_PRIVATE:
1696 case SC_10_10_IPHONE_8_0_PRIVATE:
1697 case SC_10_11_IPHONE_9_0_PRIVATE:
1698 case SC_10_12_IPHONE_10_0_PRIVATE:
1699 case SC_10_13_IPHONE_10_0_PRIVATE:
1700 case SC_10_13_IPHONE_11_0_PRIVATE:
1701 case SC_IPHONE_2_0_PRIVATE:
1702 // don't report private definitions
1703 break;
1704 default:
1705 print_headerdoc(&names[i]);
1706 break;
1707 }
1708 break;
1709 case gen_headerdoc_private_e:
1710 switch (names[i].control) {
1711 case SC_10_5_PRIVATE:
1712 case SC_10_6_IPHONE_2_0_PRIVATE:
1713 case SC_10_6_IPHONE_3_0_PRIVATE:
1714 case SC_10_7_IPHONE_4_0_PRIVATE:
1715 case SC_10_7_IPHONE_5_0_PRIVATE:
1716 case SC_10_8_IPHONE_6_0_PRIVATE:
1717 case SC_10_9_IPHONE_6_0_PRIVATE:
1718 case SC_10_9_IPHONE_7_0_PRIVATE:
1719 case SC_10_10_IPHONE_7_0_PRIVATE:
1720 case SC_10_10_IPHONE_8_0_PRIVATE:
1721 case SC_10_11_IPHONE_9_0_PRIVATE:
1722 case SC_10_12_IPHONE_10_0_PRIVATE:
1723 case SC_10_13_IPHONE_10_0_PRIVATE:
1724 case SC_10_13_IPHONE_11_0_PRIVATE:
1725 case SC_IPHONE_2_0_PRIVATE:
1726 print_headerdoc(&names[i]);
1727 break;
1728 default:
1729 // don't report public definitions
1730 break;
1731 }
1732 break;
1733 case gen_cfile_e:
1734 snprintf(kbuf, sizeof(kbuf), KEY_PREFIX "%s%s",
1735 names[i].prefix, names[i].key);
1736
1737 if (names[i].value)
1738 printf("const CFStringRef %-48s = CFSTR(\"%s\");\n",
1739 kbuf, names[i].value);
1740 else
1741 printf("const CFStringRef %-48s = CFSTR(\"%s\");\n",
1742 kbuf, names[i].key);
1743 break;
1744 default:
1745 break;
1746 }
1747 break;
1748 }
1749 }
1750 }
1751 done:
1752 return;
1753 }
1754
1755 int
1756 main(int argc, char * argv[])
1757 {
1758 char * type = "";
1759
1760 if (argc >= 2)
1761 type = argv[1];
1762
1763 if (strcmp(type, "header") == 0) {
1764 printf("%s\n", copyright_string);
1765 printf("/*\n * This file is automatically generated\n * DO NOT EDIT!\n */\n\n");
1766
1767 printf("/*\n");
1768 dump_names(gen_comments_e);
1769 printf(" */\n\n\n");
1770
1771 printf("#ifndef\t_SCSCHEMADEFINITIONS_H\n");
1772 printf("#ifdef\tUSE_SYSTEMCONFIGURATION_PRIVATE_HEADERS\n");
1773 printf("#include <SystemConfiguration/_SCSchemaDefinitions.h>\n");
1774 printf("#else\t/* USE_SYSTEMCONFIGURATION_PRIVATE_HEADERS */\n");
1775 printf("#define\t_SCSCHEMADEFINITIONS_H\n");
1776 printf("\n");
1777
1778 printf("#include <Availability.h>\n");
1779 printf("#include <TargetConditionals.h>\n");
1780 printf("#include <CoreFoundation/CFString.h>\n");
1781 printf("\n");
1782
1783 printf("/*!\n");
1784 printf(" *\t@header SCSchemaDefinitions\n");
1785 printf(" */\n\n");
1786
1787
1788 printf("\n");
1789 printf("CF_ASSUME_NONNULL_BEGIN\n");
1790
1791 dump_names(gen_headerdoc_e);
1792
1793 printf("\n");
1794 printf("CF_ASSUME_NONNULL_END");
1795 printf("\n\n");
1796
1797 printf("#endif\t/* USE_SYSTEMCONFIGURATION_PRIVATE_HEADERS */\n");
1798 printf("#endif\t/* _SCSCHEMADEFINITIONS_H */\n");
1799 }
1800 else if (strcmp(type, "private") == 0) {
1801 printf("%s\n", copyright_string);
1802 printf("/*\n * This file is automatically generated\n * DO NOT EDIT!\n */\n\n");
1803
1804 printf("/*\n");
1805 dump_names(gen_comments_private_e);
1806 printf(" */\n\n\n");
1807
1808 printf("#ifndef _SCSCHEMADEFINITIONSPRIVATE_H\n");
1809 printf("#define _SCSCHEMADEFINITIONSPRIVATE_H\n");
1810 printf("\n");
1811
1812 printf("#include <SystemConfiguration/SCSchemaDefinitions.h>\n\n");
1813
1814 printf("/*!\n");
1815 printf(" *\t@header SCSchemaDefinitionsPrivate\n");
1816 printf(" */\n");
1817 dump_names(gen_headerdoc_private_e);
1818 printf("\n\n");
1819
1820 printf("#endif\t/* _SCSCHEMADEFINITIONSPRIVATE_H */\n");
1821 }
1822 else if (strcmp(type, "cfile") == 0) {
1823 printf("/*\n");
1824 printf(" * This file is automatically generated\n");
1825 printf(" * DO NOT EDIT!\n");
1826 printf(" */\n");
1827 printf("\n");
1828 printf("#include <Availability.h>\n");
1829 printf("#include <TargetConditionals.h>\n");
1830 printf("#include <CoreFoundation/CFString.h>\n");
1831 printf("\n");
1832 dump_names(gen_cfile_e);
1833 }
1834 exit(0);
1835 return (0);
1836 }
1837