Home | History | Annotate | Download | only in dnssdutil

Lines Matching defs:Command

307 //	Gerneral Command Options
310 // Command option macros
312 #define Command( NAME, CALLBACK, SUB_OPTIONS, SHORT_HELP, IS_NOTCOMMON ) \
534 // Browse Command Options
569 // GetAddrInfo Command Options
612 // QueryRecord Command Options
665 // Register Command Options
743 // RegisterRecord Command Options
790 // Resolve Command Options
821 // Reconfirm Command Options
845 // getaddrinfo-POSIX Command Options
905 // ReverseLookup Command Options
933 // PortMapping Command Options
963 // RegisterKA Command Options
983 // BrowseAll Command Options
1012 // GetNameInfo Command Options
1042 // GetAddrInfoStress Command Options
1069 // DNSQuery Command Options
1116 // DNSCrypt Command Options
1143 // MDNSQuery Command Options
1172 // MDNSCollider Command Options
1187 "The first command, 'probes 3r', tells the collider to respond to the next three probe queries that match its\n" \
1188 "record's name. The second command, makes the collider send an unsolicited response message that contains its\n" \
1189 "record in the answer section. The third command makes the collider wait for five seconds before exiting, which\n" \
1192 "The send command will cause the targeted record to go into the probing state per section 9 since the collider's\n" \
1193 "record conflicts with target record. Per the probes command, the subsequent probe query sent during the probing\n" \
1197 "The probes command defines how the collider ought to react to probe queries that match its record's name.\n" \
1217 "When the probes command is executed, it does two things. Firstly, it resets to zero the collider's count of\n" \
1234 "The send command multicasts an unsolicited mDNS response containing the collider's record in the answer\n" \
1240 "The wait command pauses program execution for the interval of time specified by its argument.\n" \
1245 "The loop command starts a counting loop. The done statement marks the end of the loop body. The loop command's\n" \
1275 CLI_SECTION( "Program Command: probes", kMDNSColliderProgramSection_Probes ),
1276 CLI_SECTION( "Program Command: send", kMDNSColliderProgramSection_Send ),
1277 CLI_SECTION( "Program Command: wait", kMDNSColliderProgramSection_Wait ),
1278 CLI_SECTION( "Program Command: loop", kMDNSColliderProgramSection_Loop ),
1286 // PIDToUUID Command Options
1299 // DNSServer Command Options
1587 // MDNSReplier Command Options
1783 // Test Command Options
1788 "This test command can exit with one of three status codes:\n" \
2230 CLI_SECTION( "Exit Status", "This command exits with a status code of 0 if the test passed and a non-zero status code if it fails.\n" ),
2241 CLI_SECTION( "Exit Status", "This command exits with a status code of 0 if the test passed and a non-zero status code if it fails.\n" ),
2249 CLI_SECTION( "Exit Status", "This command exits with a status code of 0 if the test passed and a non-zero status code if it fails.\n" ),
2257 CLI_SECTION( "Exit Status", "This command exits with a status code of 0 if the test passed and a non-zero status code if it fails.\n" ),
2263 Command( "gaiperf", GAIPerfCmd, kGAIPerfOpts, "Runs DNSServiceGetAddrInfo() performance tests.", false ),
2264 Command( "mdnsdiscovery", MDNSDiscoveryTestCmd, kMDNSDiscoveryTestOpts, "Tests mDNS service discovery for correctness.", false ),
2265 Command( "dotlocal", DotLocalTestCmd, kDotLocalTestOpts, "Tests DNS and mDNS queries for domain names in the local domain.", false ),
2266 Command( "probeconflicts", ProbeConflictTestCmd, kProbeConflictTestOpts, "Tests various probing conflict scenarios.", false ),
2267 Command( "registration", RegistrationTestCmd, kRegistrationTestOpts, "Tests service registrations.", false ),
2269 Command( "fallback", FallbackTestCmd, kFallbackTestOpts, "Tests DNS server fallback.", false ),
2270 Command( "expensive_constrained_updates", ExpensiveConstrainedTestCmd, kExpensiveConstrainedTestOpts, "Tests if the mDNSResponder can handle expensive and constrained property change correctly", false ),
2271 Command( "dnsproxy", DNSProxyTestCmd, kDNSProxyTestOpts, "Tests mDNSResponder's DNS proxy.", false ),
2272 Command( "rcodes", RCodeTestCmd, kRCodeTestOpts, "Tests handling of all DNS RCODEs.", false ),
2273 Command( "dnsquery", DNSQueryTestCmd, kDNSQueryTestOpts, "Tests mDNSResponder's DNS queries.", false ),
2274 Command( "fastrecovery", FastRecoveryTestCmd, kFastRecoveryTestOpts, "Tests mDNSResponder's fast querier recovery.", false ),
2275 Command( "xctest", XCTestCmd, kXCTestOpts, "Run a XCTest from /AppleInternal/XCTests/com.apple.mDNSResponder/Tests.xctest.", true ),
2276 Command( "multiconnect", MultiConnectTestCmd, kMultiConnectTestOpts, "Tests multiple simultanious connections.", false ),
2279 Command( "keepalive", KeepAliveTestCmd, kKeepAliveTestOpts, "Tests keepalive record registrations.", false ),
2281 Command( "dnssec", DNSSECTestCmd, kDNSSECTestOpts, "Tests mDNSResponder's DNSSEC validation", false),
2282 Command( "optimisticDNS", OptimisticDNSTestCommand, kOptimisticDNSTestOpts, "Tests mDNSResponder's Optimistic DNS functionality.", false ),
2283 Command( "record-registration", RecordRegistrationTestCommand, kRecordRegistrationTestOpts, "Tests the registration and deregistration of records.", false ),
2284 Command( "record-cache-flush", RecordCacheFlushTestCommand, kRecordCacheFlushTestOpts, "Tests the mrc_record_cache_flush SPI.", false ),
2285 Command( "resolver-override", ResolverOverrideTestCommand, kResolverOverrideTestOpts, "Tests use of DNSServiceQueryRecordWithAttribute() with a resolver override attribute.", false ),
2290 // SSDP Command Options
2316 Command( "discover", SSDPDiscoverCmd, kSSDPDiscoverOpts, "Crafts and multicasts an SSDP search message.", false ),
2322 // res_query Command Options
2342 // dns_query Command Options
2362 // CFHost Command Options
2379 Command( "res_query", ResQueryCmd, kResQueryOpts, "Uses res_query() from either libresolv or libinfo to query for a record.", true ),
2380 Command( "dns_query", ResolvDNSQueryCmd, kResolvDNSQueryOpts, "Uses dns_query() from libresolv to query for a record.", true ),
2381 Command( "cfhost", CFHostCmd, kCFHostOpts, "Uses CFHost to resolve a hostname.", true ),
2386 // DNSConfigAdd Command Options
2412 // DNSConfigRemove Command Options
2429 Command( "add", DNSConfigAddCmd, kDNSConfigAddOpts, "Add a supplemental resolver entry to the system's DNS configuration.", true ),
2430 Command( "remove", DNSConfigRemoveCmd, kDNSConfigRemoveOpts, "Remove a supplemental resolver entry from the system's DNS configuration.", true ),
2492 // InterfaceMonitor Command Options
2504 // Querier Command Options
2589 // DNSProxy Command Options
2610 // GetAddrInfoNew Command Options
2684 // TCPInfo Command Options
2720 Command( "nat64", ThreadPFNAT64Command, kThreadPFNAT64Opts, "Set Thread border router NAT64 PF rules.", true ),
2721 Command( "delete", ThreadPFDeleteCommand, NULL, "Delete Thread border router PF rules.", true ),
2734 Command( "enable", IPv4FwdEnableCommand, NULL, "Enable IPv4 forwarding between network interfaces.", true ),
2735 Command( "disable", IPv4FwdDisableCommand, NULL, "Disable IPv4 forwarding between network interfaces.", true ),
2748 Command( "enable", IPv6FwdEnableCommand, NULL, "Enable IPv6 forwarding between network interfaces.", true ),
2749 Command( "disable", IPv6FwdDisableCommand, NULL, "Disable IPv6 forwarding between network interfaces.", true ),
2778 Command( "on", WiFiOnCommand, NULL, "Turn Wi-Fi power on.", true ),
2779 Command( "off", WiFiOffCommand, NULL, "Turn Wi-Fi power off.", true ),
2806 // Command Table
2843 Command( "browse", BrowseCmd, kBrowseOpts, "Uses DNSServiceBrowse() to browse for one or more service types.", false ),
2844 Command( "getAddrInfo", GetAddrInfoCmd, kGetAddrInfoOpts, "Uses DNSServiceGetAddrInfo() to resolve a hostname to IP addresses.", false ),
2845 Command( "queryRecord", QueryRecordCmd, kQueryRecordOpts, "Uses DNSServiceQueryRecord() to query for an arbitrary DNS record.", false ),
2846 Command( "register", RegisterCmd, kRegisterOpts, "Uses DNSServiceRegister() to register a service.", false ),
2847 Command( "registerRecord", RegisterRecordCmd, kRegisterRecordOpts, "Uses DNSServiceRegisterRecord() to register a record.", false ),
2848 Command( "resolve", ResolveCmd, kResolveOpts, "Uses DNSServiceResolve() to resolve a service.", false ),
2849 Command( "reconfirm", ReconfirmCmd, kReconfirmOpts, "Uses DNSServiceReconfirmRecord() to reconfirm a record.", false ),
2850 Command( "getaddrinfo-posix", GetAddrInfoPOSIXCmd, kGetAddrInfoPOSIXOpts, "Uses getaddrinfo() to resolve a hostname to IP addresses.", false ),
2851 Command( "reverseLookup", ReverseLookupCmd, kReverseLookupOpts, "Uses DNSServiceQueryRecord() to perform a reverse IP address lookup.", false ),
2852 Command( "portMapping", PortMappingCmd, kPortMappingOpts, "Uses DNSServiceNATPortMappingCreate() to create a port mapping.", false ),
2854 Command( "registerKA", RegisterKACmd, kRegisterKA_Opts, "Uses DNSServiceSleepKeepalive_sockaddr() to register a keep alive record.", false ),
2856 Command( "browseAll", BrowseAllCmd, kBrowseAllOpts, "Browse and resolve all (or specific) services and, optionally, attempt connections.", false ),
2860 Command( "getnameinfo", GetNameInfoCmd, kGetNameInfoOpts, "Calls getnameinfo() and prints results.", true ),
2861 Command( "getAddrInfoStress", GetAddrInfoStressCmd, kGetAddrInfoStressOpts, "Runs DNSServiceGetAddrInfo() stress testing.", true ),
2862 Command( "DNSQuery", DNSQueryCmd, kDNSQueryOpts, "Crafts and sends a DNS query.", true ),
2864 Command( "DNSCrypt", DNSCryptCmd, kDNSCryptOpts, "Crafts and sends a DNSCrypt query.", true ),
2866 Command( "mdnsquery", MDNSQueryCmd, kMDNSQueryOpts, "Crafts and sends an mDNS query over the specified interface.", true ),
2867 Command( "mdnscollider", MDNSColliderCmd, kMDNSColliderOpts, "Creates record name collision scenarios.", true ),
2869 Command( "pid2uuid", PIDToUUIDCmd, kPIDToUUIDOpts, "Prints the UUID of a process.", true ),
2871 Command( "server", DNSServerCommand, kDNSServerOpts, "DNS server for testing.", true ),
2872 Command( "mdnsreplier", MDNSReplierCmd, kMDNSReplierOpts, "Responds to mDNS queries for a set of authoritative resource records.", true ),
2873 Command( "test", NULL, kTestOpts, "Commands for testing DNS-SD.", true ),
2874 Command( "ssdp", NULL, kSSDPOpts, "Simple Service Discovery Protocol (SSDP).", true ),
2876 Command( "legacy", NULL, kLegacyOpts, "Legacy DNS API.", true ),
2877 Command( "dnsconfig", NULL, kDNSConfigOpts, "Add/remove a supplemental resolver entry to/from the system's DNS configuration.", true ),
2878 Command( "xpcsend", XPCSendCommand, kXPCSendOpts, "Sends a message to an XPC service.", true ),
2881 Command( "interfaceMonitor", InterfaceMonitorCmd, kInterfaceMonitorOpts, "Instantiates an mdns_interface_monitor.", true ),
2882 Command( "querier", QuerierCommand, kQuerierOpts, "Sends a DNS query using mdns_querier.", true ),
2883 Command( "dnsproxy", DNSProxyCmd, kDNSProxyOpts, "Enables mDNSResponder's DNS proxy.", true ),
2884 Command( "dnsproxy-state", DNSProxyStateCmd, NULL, "Gets mDNSResponder's DNS proxy state dump.", true ),
2885 Command( "getaddrinfo-new", GetAddrInfoNewCommand, kGetAddrInfoNewOpts, "Uses dnssd_getaddrinfo to resolve a hostname to IP addresses.", false ),
2886 Command( "tcpinfo", TCPInfoCommand, kTCPInfoOpts, "Uses mdns_tcpinfo_* to get TCP info.", true ),
2888 Command( "pf", NULL, kPFOpts, "Packet filter commands.", true ),
2889 Command( "ipv4fwd", NULL, kIPv4FwdOpts, "IPv4 forwarding commands.", true ),
2890 Command( "ipv6fwd", NULL, kIPv6FwdOpts, "IPv6 forwarding commands.", true ),
2891 Command( "print", PrintCommand, kPrintOpts, "Reads a DNS message in wire format and writes it to stdout in a human-readable form.", true ),
2892 Command( "wifi", NULL, kWiFiOpts, "Wi-Fi commands.", true ),
2893 Command( "discovery-proxy", DiscoveryProxyCommand, kDiscoveryProxyOpts, "Enables mDNSResponder's discovery proxy.", true ),
2894 Command( "cached-local-records", CachedLocalRecordsCommand, NULL, "Uses mrc_cached_local_records_inquiry to inquire about cached .local records.", true ),
2895 Command( "daemonVersion", DaemonVersionCmd, NULL, "Prints the version of the DNS-SD daemon.", true ),
3593 // Check command parameters.
4129 Boolean oneShotMode; // True if command is done after the first set of results (one-shot mode).
4163 // Check command parameters.
4387 Boolean oneShotMode; // True if command is done after the first set of results (one-shot mode).
4430 // Check command parameters.
4783 // Check command parameters.
5539 // Check command parameters.
5909 // Check command parameters.
6056 // Check command parameters.
6206 dispatch_queue_t queue; // Serial queue for command's events.
6207 dispatch_semaphore_t doneSem; // Semaphore to signal when underlying command operation is done.
6215 OSStatus error; // Command's error.
6242 // Start command.
6244 cmd->queue = dispatch_queue_create( "com.apple.dnssdutil.registerka-command", DISPATCH_QUEUE_SERIAL );
7207 // Check command parameters.
7567 // Check command parameters.
8114 // Check command parameters.
8468 dispatch_group_t group; // Dispatch group to signal when command is done.
8484 Boolean stopped; // True if the command has stopped.
8546 // Check command arguments.
8648 // Start command.
8650 cmd->queue = dispatch_queue_create( "com.apple.dnssdutil.server-command", DISPATCH_QUEUE_SERIAL );
10759 #define kLabel_CommandSuspend "command-suspend" // Causes the DNS server to suspend query responses.
10760 #define kLabel_CommandResume "command-resume" // Causes the DNS server to resume query responses.
12388 if( action != kDNSServerAction_None ) break; // A command cannot be specified more than once.
12397 if( action != kDNSServerAction_None ) break; // A command cannot be specified more than once.
16619 char * replierCommand; // Command used to run the replier.
16633 // command before the test starts any client requests. Then, right before all of the test's client requests are
16634 // stopped, the heap command will be used to determine the difference in mDNSResponder's heap memory usage at
16972 #define kMDNSDiscoveryTestReplierInfoKey_Command CFSTR( "command" )
17514 char * replierCmd; // Command used to invoke the mdnsreplier.
17515 char * serverCmd; // Command used to invoke the test DNS server.
19080 char * serverCmd; // Command used to invoke the test DNS server.
19283 // The "dnssdutil server" command will create a resolver entry for the server's "d.test." domain containing an array
19718 // get the command line option
22355 // The "dnssdutil server" command will create a resolver entry for the server's "d.test." domain containing an array
24028 ASPrintF( &me->probeQNAME, "tag-fast-recovery-test-probe.ttl-300.command-suspend.%s", me->domain );
24292 ASPrintF( &me->resumeQNAME, "tag-fast-recovery-test-probe.command-resume.%s", me->domain );
24343 me->suspended = false; // The resume command query will resume the DNS server.
26753 // Get the command line option.
26787 // Start the local DNS server with dnssdutil server command.
28909 FPrintF( stdout, "%{du:time} Starting DNS server with command: %s\n", NULL, serverCmd );
31109 // Check command parameters.
31855 OSStatus error; // Command's final error.
31857 Boolean done; // True if the command is done.
31910 cmd->queue = dispatch_queue_create( "com.apple.dnssdutil.xpc-send-command", DISPATCH_QUEUE_SERIAL );
32616 dispatch_queue_t queue; // Serial queue for command's events.
32617 dispatch_semaphore_t doneSem; // Semaphore to signal when command is done.
32623 OSStatus error; // Command's error.
32636 Boolean done; // True if the command is done.
32846 cmd->queue = dispatch_queue_create( "com.apple.dnssdutil.querier-command", DISPATCH_QUEUE_SERIAL );
33334 queue = dispatch_queue_create( "com.apple.dnssdutil.dns-proxy-state-command", DISPATCH_QUEUE_SERIAL );
33399 dispatch_queue_t queue; // Serial queue for command's events.
33400 dispatch_group_t group; // GCD group to know when command is done.
33408 char * stopReason; // Reason for stopping the command.
33416 OSStatus error; // Command's error.
33421 Boolean stopped; // True if the command has been stopped.
33422 Boolean oneshot; // True if the command should stop after first set of results.
33569 obj->queue = dispatch_queue_create( "com.apple.dnssdutil.getaddrinfo-new-command", attr );
33574 obj->queue = dispatch_queue_create( "com.apple.dnssdutil.getaddrinfo-new-command", DISPATCH_QUEUE_SERIAL );
34356 dispatch_queue_t queue = dispatch_queue_create( "com.apple.dnssdutil.cached-local-records-command",
35961 FPrintF( stderr, "error: This command must to be run as root.\n" );
35995 // Create command string from format string and its arguments.
36022 // Extract argument strings from command string.
36077 // Spawn command.
37370 // Loop command
37389 // Probes command
37413 // Send command
37423 // Wait command
37438 // Unrecognized command