Use the right routine and constant to decode IPv6 addresses.

This looks like it was an incomplete conversion to Socket6 routines.  It was causing the test suite to fail.