convert tcflow to ioctl