Skip to content

Commit 7c749c8

Browse files
committed
ipfixprobed - add new option NON_BLOCKING_TCP to init script and config example
1 parent 190a6d9 commit 7c749c8

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

init/ipfixprobed

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,20 @@ if [ -e "$CONFFILE" ]; then
8282
if [[ $UDP == "yes" ]]; then
8383
UDP_PARAM="udp";
8484
fi
85-
output="-o ipfix;host=${HOST:-127.0.0.1};port=${PORT:-4739};id=${LINK:-0};dir=${DIR:-0};${UDP_PARAM};template=${TEMPLATE_REFRESH_RATE:-300}"
85+
86+
NON_BLOCKING_TCP_PARAM=""
87+
if [[ $NON_BLOCKING_TCP == "yes" ]]; then
88+
NON_BLOCKING_TCP_PARAM="non-blocking-tcp";
89+
fi
90+
91+
output="-o ipfix;host=${HOST:-127.0.0.1};port=${PORT:-4739};id=${LINK:-0};dir=${DIR:-0};${UDP_PARAM};${NON_BLOCKING_TCP_PARAM};template=${TEMPLATE_REFRESH_RATE:-300}"
92+
93+
telemetry=""
94+
if [ "$USE_FUSE" = "1" ]; then
95+
telemetry="-t ${FUSE_MOUNT_POINT}"
96+
fi
97+
98+
exec /usr/bin/ipfixprobe "${dpdkinput[@]}" $input $storage $process $output $telemetry
8699

87100
telemetry=""
88101
if [ "$USE_FUSE" = "1" ]; then

init/link0.conf.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ PORT=4739
183183
# Use UDP yes/no? (instead of TCP)
184184
UDP=yes
185185

186+
# Use non-blocking socket for TCP connection yes/no?
187+
NON_BLOCKING_TCP=no
188+
186189
# Export ipfix template every N seconds (UDP)
187190
TEMPLATE_REFRESH_RATE=300
188191

0 commit comments

Comments
 (0)