Move some setup functions from os_routing to os_net