network: get rid of ioctl.ph