use struct tun_pi in read/write to pltap