sptps_test: allow using a tun device instead of stdio.