summaryrefslogtreecommitdiffstats
path: root/test/scotest.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-02-17 18:29:02 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-02-17 18:29:02 +0000
commitb2d7fd8c8e1c7948169726639675d462bd83e50e (patch)
tree30dec86bd953ffa03cef2a1298c94474990612b4 /test/scotest.c
parent1118351ad3803d4508a146762775a9ee1e05c09c (diff)
Fix sequence increment
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)",