<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Replace 'netstat' with 'ss'"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1209">1209</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Replace 'netstat' with 'ss'
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>ipset
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>default
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>netfilter-buglog@lists.netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kstreitova@suse.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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"</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>