From 80b15f0b9e6135978a7d17543d4be5fd13481b1a Mon Sep 17 00:00:00 2001 From: Rafal Macyszyn Date: Mon, 1 Apr 2024 20:50:49 +0200 Subject: [PATCH] softflowd: add '-b' option to config - add '-b' option to enable bidirectional flow probing Signed-off-by: Rafal Macyszyn --- net/softflowd/Makefile | 2 +- net/softflowd/files/softflowd.config | 1 + net/softflowd/files/softflowd.init | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/net/softflowd/Makefile b/net/softflowd/Makefile index 2a133b604a..7b4dfc10b8 100644 --- a/net/softflowd/Makefile +++ b/net/softflowd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=softflowd PKG_VERSION:=1.1.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/irino/softflowd/tar.gz/softflowd-v$(PKG_VERSION)? diff --git a/net/softflowd/files/softflowd.config b/net/softflowd/files/softflowd.config index 87dbf1369a..ee0634634b 100644 --- a/net/softflowd/files/softflowd.config +++ b/net/softflowd/files/softflowd.config @@ -11,5 +11,6 @@ config softflowd option hoplimit '' option tracking_level 'full' option track_ipv6 '0' + option bidirectional '0' option sampling_rate '100' option filter '' diff --git a/net/softflowd/files/softflowd.init b/net/softflowd/files/softflowd.init index 1fdd9ae303..5becd45146 100755 --- a/net/softflowd/files/softflowd.init +++ b/net/softflowd/files/softflowd.init @@ -44,6 +44,7 @@ start_instance() { append_string "$section" 'tracking_level' '-T' append_string "$section" 'sampling_rate' '-s' append_bool "$section" track_ipv6 '-6' + append_bool "$section" bidirectional '-b' procd_open_instance procd_set_param command /usr/sbin/softflowd -d $args${pid_file:+ -p $pid_file} "$filter"