[PATCH 23/39] net: Provide a function to run network operations