From cca80d1fd8d2d6bb3edfb52ba5eadaf7ac5d2483 Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Mon, 31 Jul 1995 13:59:45 +0000 Subject: [PATCH] The other day someone brought me an old Apple Laserwriter II with a serial interface set at 57600 baud, and I found out the hard way that lpd doesn't know about speeds greater than 38400, even though also permits 57600 and 115200 baud. Fix this by adding B57600 and B115200 to the 'bauds' table. (The Apple printer worked properly once I did this, BTW. :) --- usr.sbin/lpr/lpd/printjob.c | 2 ++ usr.sbin/lpr/runqueue/printjob.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/usr.sbin/lpr/lpd/printjob.c b/usr.sbin/lpr/lpd/printjob.c index 9341c7dedd3c..a719b55fec22 100644 --- a/usr.sbin/lpr/lpd/printjob.c +++ b/usr.sbin/lpr/lpd/printjob.c @@ -1298,6 +1298,8 @@ struct bauds { 9600, B9600, 19200, EXTA, 38400, EXTB, + 57600, B57600, + 115200, B115200, 0, 0 }; diff --git a/usr.sbin/lpr/runqueue/printjob.c b/usr.sbin/lpr/runqueue/printjob.c index 9341c7dedd3c..a719b55fec22 100644 --- a/usr.sbin/lpr/runqueue/printjob.c +++ b/usr.sbin/lpr/runqueue/printjob.c @@ -1298,6 +1298,8 @@ struct bauds { 9600, B9600, 19200, EXTA, 38400, EXTB, + 57600, B57600, + 115200, B115200, 0, 0 };