#!/bin/bash
set -x -e
modprobe sctp
test -e /run/netns/test || ip netns add test
ip netns exec test ip link set lo up
ip netns exec test iperf3 -s -1 &
sleep 0.5
ip netns exec test iperf3 -c 127.0.0.1 --sctp --bitrate 50M --time 4
cat /proc/net/sctp/snmp
ip netns exec test cat /proc/net/sctp/snmp
wait
