Merge from vendor branch TNFTP:
authorPeter Avalos <pavalos@dragonflybsd.org>
Sat, 17 May 2008 21:46:19 +0000 (21:46 +0000)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sat, 17 May 2008 21:46:19 +0000 (21:46 +0000)
commitc112ebcaf1a66cb7139f44d2ab183be934cbdace
treeea81351e6be41778303307322ca0d6b07eaf40e1
parent782997a1f7a72665648700199160a0cc2c66d781
parentfa70ef36bdac8229a2e2cf35b3cfc3444d787343
Merge from vendor branch TNFTP:
Sync with NetBSD:

Use the service name to getaddrinfo() (along with the host name), so that
features such as DNS Service Discovery have a better chance of working.

Display the service name in various status & error messages.

Don't getservbyname() the :port component of a URL; RFC 3986 says it's
just an unsigned number, not a service name.

Only attempt to el_parse() a command unknown by the default parser
if editing is enabled.
Fixes NetBSD PR bin/38589

Add epsv6 and epsv to disable extended passive mode for ipv6 or both ipv4
and ipv6 respectively.