]> git.ipfire.org Git - thirdparty/cups.git/commit
Fix up IPv6 support, and remove remaining dirent checks.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 16 Sep 2005 20:13:58 +0000 (20:13 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 16 Sep 2005 20:13:58 +0000 (20:13 +0000)
commit7c298ddc59ae16a80dd3b192733649ccc3dc1d53
treec8782658d899f51aa181b37843372a2b01499619
parentb1b4588886c1db63410590ce2435d49df81a00b7
Fix up IPv6 support, and remove remaining dirent checks.

backend/lpd.c:
    - lpd_queue(): Use http_addr_t, httpAddrLoad(), and loop
      through addresses.

backend/socket.c:
    - main(): Use http_addr_t, httpAddrLoad(), and loop through
      addresses.

config.h.in:
    - Add HAVE_GETADDRINFO.
    - Replace HAVE_RRESVPORT with HAVE_RRESVPORT_AF.
    - Remove dirent defines.

config-scripts/cups-common.m4:
    - Remove AC_DIRENT.

config-scripts/cups-network.m4:
    - Add check for getaddrinfo.
    - Replace check for rresvport with check for rresvport_af.

cups/http.c:
    - httpConnect(): Change "encrypt" to "encryption".
    - httpConnectEncrypt(): Change "encrypt" to "encryption".

cups/http.h:
    - httpConnectEncrypt(): Change "encrypt" to "encryption".

cups/http-addr.c:
    - httpAddrLocalhost(): Treat unspecified IPv6 address as
      local.
    - httpAddrString(): Change IPv6 address format to [x:x:x:x].
    - httpAddrGetHostByName(): Support [x:x:x:x] format for IPv6
      addresses and use getaddrinfo() if available.

cups/http-support.c:
    - httpSeparate(): Change method to scheme.
    - httpSeparate2(): Change method to scheme, methodlen to
      schemelen, support IPv6 addresses using the [x:x:x:x]
      format, and decode all resources for the shortcut forms.

pdftops/gfile.h:
    - Remove DIRENT checks.

scheduler/auth.c:
    - CheckAuth(): Make IPv6 variables conditional.
    - cupsdIsAuthorized(): Load IPv4 address using 0:0:0 prefix.

scheduler/client.c:
    - AcceptClient(): Only do lookup after checking localhost and
      server address.

scheduler/conf.c:
    - get_address(): Support [x:x:x:x] format for IPv6 addresses,
      and load IPv4 addresses using 0:0:0 prefix.
    - get_addr_and_mask(): Support [x:x:x:x] format for IPv6 addresses,
      and load IPv4 addresses using 0:0:0 prefix.
    - read_configuration(): Add experimental code to double up
      IPv6 + IPv4 for wildcard address (commented, since it isn't
      needed for Linux, but we need to test other OS's...)

scheduler/listen.c:
    - StartListening(): Automatically try binding IPv4 versions
      of IPv6 loopback and "any" addresses, in case the local
      system does not have IPv6 enabled at run time.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@4653 7a7537e8-13f0-0310-91df-b6672ffda945
15 files changed:
backend/lpd.c
backend/socket.c
config-scripts/cups-common.m4
config-scripts/cups-network.m4
config.h.in
cups.spec
cups/http-addr.c
cups/http-support.c
cups/http.c
cups/http.h
pdftops/gfile.h
scheduler/auth.c
scheduler/client.c
scheduler/conf.c
scheduler/listen.c