net: move address list functions to a separate file