Adding IPv6 support

This patch adds IPv6 support per the mailing list thread on the topic.