From 11d22d5457921db8c72200020ec3f98a253b8fab Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 27 Apr 2012 07:16:06 +0000 Subject: [PATCH] - fix --- src/integration-tests/connection_watchdog.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/integration-tests/connection_watchdog.c b/src/integration-tests/connection_watchdog.c index 058732c60..cb5ccc236 100644 --- a/src/integration-tests/connection_watchdog.c +++ b/src/integration-tests/connection_watchdog.c @@ -230,8 +230,8 @@ check_lowlevel_connections (int port, int protocol) break; } - - GNUNET_asprintf(&cmdline, "netstat -n %s | grep %u", proto, port); + /* Use netstat to get a numeric list of all connections on port 'port' in state 'ESTABLISHED' */ + GNUNET_asprintf(&cmdline, "netstat -n %s | grep %u | grep ESTABLISHED", proto, port); if (system ("netstat -n > /dev/null 2> /dev/null")) if (system ("netstat -n > /dev/null 2> /dev/null") == 0) @@ -871,7 +871,11 @@ core_notify_receive_cb (void *cls, if (NULL == pc) { - GNUNET_break (0); + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Received unexpected message type %u from unknown peer `%s'\n", + ntohs (message->type), + GNUNET_i2s (peer)); + + return GNUNET_OK; } -- 2.25.1