You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
Log connection type to aid in IPv6 testing/verification #2046
Build a URI for the printer and fill the standard IPP attributes for
an IPP_PRINT_FILE request. We can't use the URI in argv[0] because it
Index: socket.c
--- socket.c (revision 6044)
+++ socket.c (working copy)
@@ -78,7 +78,9 @@
int delay; /* Delay for retries... /
int device_fd; / AppSocket /
int error; / Error code (if any) */
http_addrlist_t addrlist; / Address list */
http_addrlist_t addrlist, / Address list */
_addr; /_ Connected address */
char addrname[256]; /* Address name /
ssize_t tbytes; / Total number of bytes written /
struct timeval timeout; / Timeout for select() /
fd_set input; / Input set for select() */
@@ -245,7 +247,7 @@
Activity
michaelrsweet commentedon Oct 23, 2006
CUPS.org User: mike
Fixed in Subversion repository.
michaelrsweet commentedon Oct 23, 2006
"ipv6-logging.patch":
Index: lpd.c
--- lpd.c (revision 6044)
+++ lpd.c (working copy)
@@ -582,6 +582,7 @@
cptr; / Pointer into control file string /
char status; / Status byte from command /
char portname[255]; / Port name */
char addrname[256]; /* Address name /
http_addrlist_t *addrlist, / Address list /
*addr; / Socket address /
int copy; / Copies written */
@@ -820,9 +821,19 @@
fputs("STATE: -connecting-to-device\n", stderr);
fprintf(stderr, "INFO: Connected to %s...\n", hostname);
fprintf(stderr, "DEBUG: Connected on ports %d (local %d)...\n", port,
+#ifdef AF_INET6
+#endif /* AF_INET6 */
/*Next, open the print file and figure out its size...
--- ipp.c (revision 6044)_/
Index: ipp.c
+++ ipp.c (working copy)
@@ -106,6 +106,7 @@
hostname[1024], /_ Hostname /
username[255], / Username info /
resource[1024], / Resource info (printer name) */
fputs("STATE: -connecting-to-device\n", stderr);
fprintf(stderr, "INFO: Connected to %s...\n", hostname);
+#ifdef AF_INET6
+#endif /* AF_INET6 */
/*an IPP_PRINT_FILE request. We can't use the URI in argv[0] because it
--- socket.c (revision 6044)Index: socket.c
+++ socket.c (working copy)
@@ -78,7 +78,9 @@
int delay; /* Delay for retries... /
int device_fd; / AppSocket /
int error; / Error code (if any) */
ssize_t tbytes; / Total number of bytes written /
struct timeval timeout; / Timeout for select() /
fd_set input; / Input set for select() */
@@ -245,7 +247,7 @@
for (delay = 5;;)
{
{
error = errno;
device_fd = -1;
@@ -293,7 +295,20 @@
}
fputs("STATE: -connecting-to-device\n", stderr);
+#ifdef AF_INET6
if (addr->addr.addr.sa_family == AF_INET6)
fprintf(stderr, "DEBUG: Connected to [%s]:%d (IPv6)...\n",
else
+#endif /* AF_INET6 */
if (addr->addr.addr.sa_family == AF_INET)
/*
Print everything...
--- Makefile (revision 6044)*/
Index: Makefile
+++ Makefile (working copy)
@@ -46,7 +46,7 @@
clean: