gdhcp: Move get_interface_name and interface_is_up to common.c