handle IPv6 addresses in inet_ntop and inet_pton
Merge pull request #1348 from mnaamani/inet

handle IPv6 addresses in inet_ntop and inet_pton