summaryrefslogtreecommitdiffstats
path: root/test/scotest.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/scotest.c')
-rw-r--r--test/scotest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/scotest.c b/test/scotest.c
index dcb1acdf..0c8d8da3 100644
--- a/test/scotest.c
+++ b/test/scotest.c
@@ -215,8 +215,9 @@ void send_mode(char *svr)
seq = 0;
while (1) {
- *(uint32_t *)buf = htobl(seq++);
+ *(uint32_t *)buf = htobl(seq);
*(uint16_t *)(buf+4) = htobs(data_size);
+ seq++;
if (send(s, buf, so.mtu, 0) <= 0) {
syslog(LOG_ERR, "Send failed. %s(%d)",