changes for ipv6

changes for ipv6
please rename all `ipType` to `ipversion`; avoid CamelCase.