From 9925dff45613f2b81040aa2d25b7e9d41b4f6346 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Mon, 1 Jun 2015 11:27:05 +0200 Subject: [PATCH] tools/l2test: Allow to send zero frames before delay --- tools/l2test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/l2test.c b/tools/l2test.c index 75603a8a7..dac98f9ef 100644 --- a/tools/l2test.c +++ b/tools/l2test.c @@ -977,6 +977,9 @@ static void do_send(int sk) buf[i] = 0x7f; } + if (!count && send_delay) + usleep(send_delay); + seq = seq_start; while ((num_frames == -1) || (num_frames-- > 0)) { put_le32(seq, buf); -- 2.47.3