]> git.ipfire.org Git - thirdparty/cups.git/commit - backend/lpd.c
New IPv6-capable address list stuff for STR #1313. Basically, this
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 8 Oct 2005 10:10:46 +0000 (10:10 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Sat, 8 Oct 2005 10:10:46 +0000 (10:10 +0000)
commit086c584d2a23b20e4f7346ac202afe5216dbd599
tree837903710a7e5d6faac9809f28c57813a8048ce9
parent732b1c31a9d6fd66864a00d60e20021675a4cf5a
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
18 files changed:
backend/lpd.c
backend/socket.c
cups/Makefile
cups/auth.c
cups/file.c
cups/globals.h
cups/http-addr.c
cups/http-addrlist.c [new file with mode: 0644]
cups/http-private.h
cups/http.c
cups/http.h
cups/util.c
scheduler/auth.c
scheduler/client.c
scheduler/client.h
scheduler/conf.c
scheduler/listen.c
scheduler/network.c