ip: set ip4 mask for ip_copy and ip_set when dealing with ip4 type