net: move ioctl functions into a separated file