convert memcpy to copy_ipaddr

Signed-off-by: Etienne Basset <etienne.basset@ensta.org>
more conversion to copy_**

Signed-off-by: Etienne Basset <etienne.basset@ensta.org>