net/pcap: fix Tx return count in error conditions