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