summaryrefslogtreecommitdiffstats
path: root/tests/tcpflood.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcpflood.c')
-rw-r--r--tests/tcpflood.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/tcpflood.c b/tests/tcpflood.c
index 3020f389..a37845a3 100644
--- a/tests/tcpflood.c
+++ b/tests/tcpflood.c
@@ -5,6 +5,7 @@
* -t target address (default 127.0.0.1)
* -p target port (default 13514)
* -n number of target ports (targets are in range -p..(-p+-n-1)
+ * Note -c must also be set to at LEAST the number of -n!
* -c number of connections (default 1)
* -m number of messages to send (connection is random)
* -i initial message number (optional)
@@ -451,10 +452,12 @@ int main(int argc, char *argv[])
exit(1);
}
+ closeConnections(); /* this is important so that we do not finish too early! */
+
if(nConnDrops > 0)
printf("-D option initiated %ld connection closures\n", nConnDrops);
+
printf("End of tcpflood Run\n");
- closeConnections(); /* this is important so that we do not finish too early! */
exit(ret);
}