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