iface updates prefixes when dp is changed, and ipv4 generation code is corrected