Subject: pkg/net/netatalk: printing problems
To: None <current-users@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: current-users
Date: 02/23/1999 22:51:40
I installed pkg/net/netatalk and try to print from a performa600 using
german system7.5.5/LaserWriter8. All print jobs hang and no data gets to
the printer.
After applying the following change, printing is fine. Comments?
--- netatalk-981109-orig/etc/papd/session.c Tue Feb 16 18:41:01 1999
+++ netatalk-981109/etc/papd/session.c Tue Feb 23 19:50:11 1999
@@ -55,5 +55,5 @@
char cbuf[ 578 ];
int i, cc, timeout = 0, readpending = 0;
- u_short seq = 1, rseq = 1, netseq;
+ u_short seq = 0, rseq = 1, netseq;
u_char readport;
The code in question is:
/*
* Ask for data.
*/
cbuf[ 0 ] = connid;
cbuf[ 1 ] = PAP_READ;
if ( seq++ == 0xffff ) seq = 1;
netseq = htons( seq );
bcopy( &netseq, &cbuf[ 2 ], sizeof( netseq ));
The first PAP_READ package sent contains a sequence number of `2'. According
to `Inside AppleTalk' the first sequence number must be `1'.
--
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)