We will reuse this in Wireguard to grab the listening port that was
chosen if it was omitted, so we can use a consistent port for udp6 and
export the result to userland.
MFC after: 3 days
kevans on Mar 9 2021, 1:11 PM.Authored by