Added IPv6 support to Agent.