iperf: fix --daemon option
authorRafał Miłecki <rafal@milecki.pl>
Sun, 7 Oct 2018 12:17:50 +0000 (14:17 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Sun, 7 Oct 2018 15:15:45 +0000 (17:15 +0200)
commit0dbe3d28f7e2716e568ef36c8fa4d3c0964239f0
treebdb1f9cf8cedd434ddfa11126d10acccc8fe5569
parent95e2da836688469924df07f0009a94098e9c75fa
iperf: fix --daemon option

Support for -D got broken in the 2.0.11 release by the upstream commit
218d8c667944 ("first pass L2 mode w/UDP checks, v4 only"). After that
commit clients were still able to connect but no traffic was passed.
It was reported and is fixed now in the upstream git repository.

Backport two patches to fix this. The first one is just a requirement
for the later to apply. The second one is the real fix and it needed
only a small adjustment to apply without backporing the commit
10887b59c7e7 ("fix --txstart-time report messages").

Fixes: 7d15f96eaf76 ("iperf: bump to 2.0.12")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 87cd118794cc9375260ea213838e80ad5295e83c)
package/network/utils/iperf/Makefile
package/network/utils/iperf/patches/0001-fix-latent-bug-in-signal-handling-per-POSIX-calling-.patch [new file with mode: 0644]
package/network/utils/iperf/patches/0002-cleanup-main-startup-fix-daemon-mode-per-redirecting.patch [new file with mode: 0644]