> From [EMAIL PROTECTED] Fri Jul 16 15:48:51 2004
> Date: Fri, 16 Jul 2004 12:51:20 -0700
> From: Jim McCloskey <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: short request line
>
> Hello.
>
> I have a Debian linux box which runs LPRng version 3.8.27 as its
> printer spooler. It functions as a firewall/router for a home network.
>
> I set up /etc/hosts.lpd and /etc/lprng/lpd.perms so that this box will
> handle print-requests from the laptops that are also part of the home
> network (the printer is an HP LJ1100 connected to the parallel port of
> the Debian box).
>
> This all works great from my own laptop, which also runs Debian (and
> has the same version of LPRng). But there is also an OS X laptop in
> the house, and print requests from that machine are refused. The
> resulting message in /var/log/lpr.log is:
>
> Service_connection: short request line '^B', from '192.168.1.101 port
> 836'
>
> I haven't had much luck so far in tracking down what this error
> message means or what lies behind it, though I assume that whatever
> lies behind it is what is causing print-requests from the OS X machine
> to be refused.
>
> Does anyone know how this problem might be solved? I'd be very
> grateful indeed for any help or pointers.
>
> Thanks very much for your time,
>
> Jim McCloskey
>
This appears to be an error in the LPD protcol implementation by Apple.
The sequence
actually sent is '\002\n". This is a 'receive a printer job' sequence
without
a print queue name. From RFC1179, we have:
5.2 02 - Receive a printer job
+----+-------+----+
| 02 | Queue | LF |
+----+-------+----+
Command code - 2
Operand - Printer queue name
Receiving a job is controlled by a second level of commands.
The
daemon is given commands by sending them over the same
connection.
The commands are described in the next section (6).
After this command is sent, the client must read an
acknowledgement
octet from the daemon. A positive acknowledgement is an
octet of
zero bits. A negative acknowledgement is an octet of any
other
pattern.
Note the 'Queue' name. This is missing. If a queue name is not
supplied, then how can you determine the queue to print to?
I STRONGLY recommend that you report this to Apple and get a fixed
version
of their software.
Patrick Powell Astart Technologies
[EMAIL PROTECTED] 6741 Convoy Court
Network and System San Diego, CA 92111
Consulting 858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address MUST be your
subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.
To subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, call Patrick Powell or one of the friendly
staff at Astart Technologies for help. Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-----------------------------------------------------------------------------