summaryrefslogtreecommitdiff
path: root/ldpd/ldp_debug.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-04 21:04:46 -0500
committerGitHub <noreply@github.com>2017-03-04 21:04:46 -0500
commite4e41e3277ceb0e911d691945709cca79f71aade (patch)
tree715ce257233c4358d13e3c731529e7d2adada214 /ldpd/ldp_debug.h
parentbc6cec21c458ff9a3e82f38bb3f5cf23143ba8c1 (diff)
parentffdc293b9dc0ed746a31fcf20765c2d5e85e9c70 (diff)
Merge pull request #249 from opensourcerouting/ldpd-rfcs
ldpd: implement new RFCs and other assorted enhancements
Diffstat (limited to 'ldpd/ldp_debug.h')
-rw-r--r--ldpd/ldp_debug.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ldpd/ldp_debug.h b/ldpd/ldp_debug.h
index aa0cd47e7b..f944851b6e 100644
--- a/ldpd/ldp_debug.h
+++ b/ldpd/ldp_debug.h
@@ -104,6 +104,14 @@ do { \
log_debug("msg[out]: " emsg, __VA_ARGS__); \
} while (0)
+#define debug_msg(out, emsg, ...) \
+do { \
+ if (out) \
+ debug_msg_send(emsg, __VA_ARGS__); \
+ else \
+ debug_msg_recv(emsg, __VA_ARGS__); \
+} while (0)
+
#define debug_kalive_recv(emsg, ...) \
do { \
if (LDP_DEBUG(msg, MSG_RECV_ALL)) \