net: separate SIOCGIFCONF handling from dev_ioctl()