aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2020-01-03 20:29:05 -0800
committerFlorian Fainelli <f.fainelli@gmail.com>2020-01-03 20:30:09 -0800
commite98e046f06f388e49c12e52b3a333a7e77c008cd (patch)
tree824e38cce71646f60d22533377a45bca5aaf3748 /package/network
parent9a417fbd0d61cf01d36df0b91ed0490c06dbe5eb (diff)
downloadupstream-e98e046f06f388e49c12e52b3a333a7e77c008cd.tar.gz
upstream-e98e046f06f388e49c12e52b3a333a7e77c008cd.tar.bz2
upstream-e98e046f06f388e49c12e52b3a333a7e77c008cd.zip
iperf: Allow enabling multicast support
iperf2 is useful for testing UDP over multicast, add an option to permit the enabling/disabling of multicast support. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/utils/iperf/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/network/utils/iperf/Makefile b/package/network/utils/iperf/Makefile
index 3a235fadc7..5c84e1617d 100644
--- a/package/network/utils/iperf/Makefile
+++ b/package/network/utils/iperf/Makefile
@@ -20,6 +20,8 @@ PKG_LICENSE:=BSD-3-Clause
PKG_BUILD_PARALLEL:=1
+PGK_CONFIG_DEPENDS:=IPERF_ENABLE_MULTICAST
+
include $(INCLUDE_DIR)/uclibc++.mk
include $(INCLUDE_DIR)/package.mk
@@ -37,8 +39,19 @@ define Package/iperf/description
characteristics.
endef
+define Package/iperf/config
+ config IPERF_ENABLE_MULTICAST
+ depends on PACKAGE_iperf
+ bool "Enable multicast support"
+endef
+
+
TARGET_CFLAGS += -D_GNU_SOURCE
+ifeq ($(CONFIG_IPERF_ENABLE_MULTICAST),y)
+CONFIGURE_ARGS += --enable-multicast
+else
CONFIGURE_ARGS += --disable-multicast
+endif
ifeq ($(CONFIG_IPV6),)
CONFIGURE_ARGS += --disable-ipv6