fix get_hrn() for interface type