PIM_ZCLIENT_DEBUG enables zclient_socket() / zclient_socket_un() debug
diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c
index 98548e7..112ff26 100644
--- a/pimd/pim_zlookup.c
+++ b/pimd/pim_zlookup.c
@@ -51,6 +51,8 @@
return 0;
}
+#ifdef PIM_ZCLIENT_DEBUG
+
#ifdef HAVE_TCP_ZEBRA
zlog_debug("%s: FIXME blocking connect: zclient_socket()",
__PRETTY_FUNCTION__);
@@ -77,6 +79,17 @@
}
#endif /* HAVE_TCP_ZEBRA */
+#else
+
+ zlog_debug("%s: FIXME blocking connect: zclient_socket_connect()",
+ __PRETTY_FUNCTION__);
+ if (zclient_socket_connect(zlookup) < 0) {
+ zlog_warn("%s: failure connecting zclient socket",
+ __PRETTY_FUNCTION__);
+ }
+
+#endif /* PIM_ZCLIENT_DEBUG */
+
zassert(!zlookup->t_connect);
if (zlookup->sock < 0) {
/* Since last connect failed, retry within 10 secs */