remove some unnecessary isequal() definitions.
make IPv4 and IPv6 immutable