From 9be853a2c8d0fd7fdc415200af57493ad5a00feb Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 28 Feb 2011 17:28:07 +0100 Subject: added new tls-based test to testbench --- tests/tcpflood.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/tcpflood.c') diff --git a/tests/tcpflood.c b/tests/tcpflood.c index b4f097f9..59c63d23 100644 --- a/tests/tcpflood.c +++ b/tests/tcpflood.c @@ -334,7 +334,7 @@ void closeConnections(void) * of constructing test messages. -- rgerhards, 2010-03-31 */ static inline void -genMsg(char *buf, size_t maxBuf, int *pLenBuf) +genMsg(char *buf, size_t maxBuf, int *pLenBuf, struct instdata *inst) { int edLen; /* actual extra data length to use */ char extraData[MAX_EXTRADATA_LEN + 1]; @@ -377,6 +377,7 @@ genMsg(char *buf, size_t maxBuf, int *pLenBuf) /* use fixed message format from command line */ *pLenBuf = snprintf(buf, maxBuf, "%s\n", MsgToSend); } + ++inst->numSent; finalize_it: /*EMPTY to keep the compiler happy */; } @@ -425,7 +426,7 @@ int sendMessages(struct instdata *inst) socknum = rnd % numConnections; } } - genMsg(buf, sizeof(buf), &lenBuf); /* generate the message to send according to params */ + genMsg(buf, sizeof(buf), &lenBuf, inst); /* generate the message to send according to params */ if(transport == TP_TCP) { if(sockArray[socknum] == -1) { /* connection was dropped, need to re-establish */ -- cgit