Add some utilities to IPSockAddr

These utilities help construct IPSockAddr and are used in
DnsResolver.

Bug: 130686826
Test: built, flashed, rebooted
Test: atest passed
Change-Id: I032d78f96e5d87d918a6ada976c770c73879d38c
1 file changed