changes for ipv6

changes for ipv6
If the rest of the function is the same, then why have this a parameter?