Moving code that converts struct ifconf to smartlist into separate function.
Declaring conversion functions in address.h to allow unit tests access them.