Add IPv6 support for address parsing and unparsing in ng_ksocket.
- Fix issues related to D23788.
- Validate square brackets as a requirement. (src, man)
Co-authored by: Neel Chauhan <neel AT neelc DOT org>
Note: Phabricator won't let me use the update diff function from the original revision.