I want to open a file descriptor and retrieve packets sent over a tun interface but:
packet = list(os.read(tun_fd.fileno(), 2048))
call is blocking, is there a way on how to have it non blocking. BTW I've found a flag os.O_NONBLOCK but that was I think only for os.open(file) command