]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/Common/ipsecMessageTracer.h
ipsec-93.6.tar.gz
[apple/ipsec.git] / ipsec-tools / Common / ipsecMessageTracer.h
index 14bafba960533d6b630d5081086332e86985acc0..9a3f50a130288db80e7c29f85500593afa5ae913 100644 (file)
 #define PLAINIPSEC_PHASE_DOMAIN                                                 CONSTSTR("com.apple.Networking.ipsec.phasestats.plain")
 #define PLAINIPSECDOMAIN                                                        CONSTSTR("com.apple.Networking.ipsec.main")
 
+#if TARGET_OS_EMBEDDED
+
+#define IPSECCONFIGTRACEREVENT(config, eventCode, message, failure_reason)             
+
+#define IPSECPOLICYTRACEREVENT(policy, eventCode, message, failure_reason)             
+
+#define IPSECSESSIONTRACERSTART(session)                                                                               
+#define IPSECSESSIONTRACEREVENT(session, eventCode, message, failure_reason)   
+#define IPSECSESSIONTRACERSTOP(session, is_failure, reason)                                            
+#define IPSECSESSIONTRACERESTABLISHED(session)                                  
+
+#else
+
 #define IPSECCONFIGTRACEREVENT(config, eventCode, message, failure_reason)             ipsecConfigTracerEvent(config, eventCode, message, failure_reason)
 
 #define IPSECPOLICYTRACEREVENT(policy, eventCode, message, failure_reason)             ipsecPolicyTracerEvent(policy, eventCode, message, failure_reason)
@@ -48,6 +61,8 @@
 #define IPSECSESSIONTRACERSTOP(session, is_failure, reason)                                            ipsecSessionTracerStop(session, is_failure, reason)
 #define IPSECSESSIONTRACERESTABLISHED(session)                                  ipsecSessionTracerLogEstablished(session)
 
+#endif
+
 static inline double get_percentage (double numerator, double denominator)
 {
     if (numerator >= denominator || denominator == 0) {