[Bug 1209] New: Replace 'netstat' with 'ss'
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Tue Jan 2 17:53:58 CET 2018
https://bugzilla.netfilter.org/show_bug.cgi?id=1209
Bug ID: 1209
Summary: Replace 'netstat' with 'ss'
Product: ipset
Version: unspecified
Hardware: x86_64
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: default
Assignee: netfilter-buglog at lists.netfilter.org
Reporter: kstreitova at suse.com
Since the 'netstat' command is deprecated I suggest replacing it with 'ss'
command in tests/runtest.sh file.
I'm adding a simple patch:
Index: ipset-6.34/tests/runtest.sh
===================================================================
--- ipset-6.34.orig/tests/runtest.sh
+++ ipset-6.34/tests/runtest.sh
@@ -45,7 +45,7 @@ add_tests() {
`$cmd -t filter | grep ACCEPT | wc -l` -eq 3 ]; then
if [ -z "`which sendip`" ]; then
echo "sendip utility is missig: skipping $1 match and target
tests"
- elif [ -n "`netstat --protocol $1 -n | grep $2`" ]; then
+ elif [ -n "`ss -f $1 -n | grep $2`" ]; then
echo "Our test network $2 in use: skipping $1 match and
target tests"
else
tests="$tests $add"
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20180102/db95deea/attachment.html>
More information about the netfilter-buglog
mailing list