iface: fix comparison of addresses and prefixes