Splitting get_interface_addresses_raw() into subfunctions.