userspace code test: save packets on tap interface to pcap format
kernel code reading: tun device ioctl interface