2 // xpc_client_log_utility.h
5 // Copyright (c) 2019 Apple Inc. All rights reserved.
8 #ifndef XPC_CLIENT_LOG_UTILITY_H
9 #define XPC_CLIENT_LOG_UTILITY_H
11 #define kDNSLogUtilityService "com.apple.mDNSResponder.log_utility"
17 kDNSMsg_UnknownRequest
,
19 } DaemonReplyStatusCodes
;
21 #define kDNSErrorDescription "ErrorDescription"
23 #define kDNSLogLevel "DNSLoggingVerbosity"
26 log_level1
= 1, // logging off
27 log_level2
, // logging USR1
28 log_level3
, // logging USR2
29 log_level4
, // logging USR1/2
32 #define kDNSStateInfo "DNSStateInfoLevels"
35 full_state
= 1, // Dump state to a plain text file
36 full_state_with_compression
= 2, // Dump state to a compressed file
37 full_state_to_stdout
= 3, // Dump state to STDOUT
40 #define kmDNSResponderTests "mDNSResponderTests"
43 test_helper_ipc
= 1, // invokes mDNSResponder to send a test msg to mDNSResponderHelper
44 test_mDNS_log
, // invokes mDNSResponder to log using different internal macros
47 #define kDNSStateDump "mDNSResponderStateDump"
48 #define kDNSDumpFilePath "mDNSResponderDumpFilePath"
49 #define kDNSStateDumpTimeUsed "mDNSResponderDumpTimeUsed"
50 #define kDNSStateDumpFD "mDNSResponderDumpFD"
52 #endif /* XPC_CLIENT_LOG_UTILITY_H */