New IPv6-capable address list stuff for STR #1313. Basically, this
change deprecates the old httpGetHostByName() interface and adds a new
address list interface which supports mixed address types.
backend/lpd.c:
- lpd_queue(): Use new httpAddrGetList() and
httpAddrFreeList() functions.
backend/socket.c:
- main(): Use new httpAddrConnect(), httpAddrGetList() and
httpAddrFreeList() functions.
cups/auth.c:
- cups_local_auth(): Fix address check for new hostaddr
pointer.
cups/file.c:
- cupsFileOpen(): Use new httpAddrConnect(),
httpAddrGetList() and httpAddrFreeList() functions.
cups/globals.h:
- Drop ip_addrs from and add ip_addr and domain_socket
members to _cups_globals_s structure.
cups/http-addr.c:
- httpAddrLoad(): Deleted.
- httpGetHostByName(): Remove IPv6 and getaddrinfo() handling
code.
cups/http-addrlist.c:
- Added.
cups/http.c:
- httpClose(): Free address list.
- httpConnectEncrypt(): Use new httpAddrFreeList() and
httpAddrGetList() functions.
- httpReconnect(): Use new httpAddrConnect() function.
cups/http.h:
- Change hostaddr member of http_t structure to be a
http_addr_t *.
- Add addrlist member to the http_t structure.
- Add httpAddrConnect(), httpAddrFreeList(), and
httpAddrGetList() functions.
- Remove httpAddrLoad() function.
cups/http-private.h:
- Add common headers.
cups/util.c:
- cupsGetPPD2(): Fix hostaddr references.
scheduler/auth.c:
- cupsdIsAuthorized(): Fix hostaddr references.
scheduler/client.c:
- cupsdAcceptClient(): Use httpAddrFreeList() and
httpAddrGetList(), and fix hostaddr references.
- pipe_command(): Fix hostaddr references.
scheduler/client.h:
- Add clientaddr member to cups_client_t structure.
- Change ServerAddr to ServerAddrs list.
scheduler/conf.c:
- get_address(): Use httpAddrFreeList() and
httpAddrGetList().
scheduler/listen.c:
- cupsdStartListening(): Use httpAddrFreeList() and
httpAddrGetList().
scheduler/network.c:
- cupsdNetIFUpdate(): Use ServerAddrs list.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4757
7a7537e8-13f0-0310-91df-
b6672ffda945