forward port of ipv6 to 1.7
Merge pull request #275 from Incubaid/ipv6_for_1.7

forward port of ipv6 to 1.7