#!/bin/bash # NFT_TEST_REQUIRES(NFT_TEST_HAVE_socat) # regression check for issue fixed with kernel commit # b975d3ee5962 ("net: add and use skb_get_hash_net") # without it, flow dissector used to WARN(). ip link set lo up $NFT -f - < /dev/null socat -u STDIN TCP:[::1]:5555,connect-timeout=2 < /dev/null > /dev/null $NFT list ruleset |grep -q 'counter packets 0 bytes 0' || exit 1 exit 0