Date: Thu, 11 May 95 21:41 CDT From: uhclem%nemesis@fw.ast.com (Frank Durda IV) To: freebsd-current@FreeBSD.org Subject: Taylor UUCP and flow control Message-ID: <m0s9kfA-0004vwC@nemesis.lonestar.org>
next in thread | raw e-mail | index | archive | help
[0]From: Bruce Evans <bde@zeta.org.au>
[0]The correct setting is system dependent. That's why everything in rc.serial
[0]is commented out by default. The setting of dtrwait is safe enough but
[0]the setting of crtscts may cause problems if the modem doesn't assert CTS
[0]except when there is carrier.
That reminds me. Taylor UUCP 1.04 and 1.05 both deliberatly disable
hardware flow control (-crtscts) when it is running. You have to change
the UUCP source (as far as I know) to get hardware flow control to remain
on. This happens for incoming and outgoing UUCP sessions.
This is the patch I use:
*** serial.c.00 Mon May 1 22:43:31 1995
--- serial.c Mon May 1 23:01:54 1995
***************
*** 205,211 ****
| OFILL | OFDEL | NLDLY | CRDLY | TABDLY | BSDLY \
| VTDLY | FFDLY)
#define ICLEAR_CFLAG (CBAUD | CSIZE | PARENB | PARODD)
! #define ISET_CFLAG (CS8 | CREAD | HUPCL)
#define ICLEAR_LFLAG (ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK \
| ECHONL | NOFLSH | PENDIN)
#endif
--- 205,212 ----
| OFILL | OFDEL | NLDLY | CRDLY | TABDLY | BSDLY \
| VTDLY | FFDLY)
#define ICLEAR_CFLAG (CBAUD | CSIZE | PARENB | PARODD)
! #define ISET_CFLAG (CS8 | CREAD | HUPCL | CRTS_IFLOW | CCTS_OFLOW)
! /*<1>#define ISET_CFLAG (CS8 | CREAD | HUPCL)*/
#define ICLEAR_LFLAG (ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK \
| ECHONL | NOFLSH | PENDIN)
#endif
***************
*** 215,221 ****
| PARMRK | IMAXBEL)
#define ICLEAR_OFLAG (OPOST)
#define ICLEAR_CFLAG (CSIZE | PARENB | PARODD)
! #define ISET_CFLAG (CS8 | CREAD | HUPCL)
#define ICLEAR_LFLAG (ECHO | ECHOE | ECHOK | ECHONL | ICANON | IEXTEN \
| ISIG | NOFLSH | TOSTOP | PENDIN)
#endif
--- 216,223 ----
| PARMRK | IMAXBEL)
#define ICLEAR_OFLAG (OPOST)
#define ICLEAR_CFLAG (CSIZE | PARENB | PARODD)
! #define ISET_CFLAG (CS8 | CREAD | HUPCL | CRTS_IFLOW | CCTS_OFLOW)
! /*<1>#define ISET_CFLAG (CS8 | CREAD | HUPCL)*/
#define ICLEAR_LFLAG (ECHO | ECHOE | ECHOK | ECHONL | ICANON | IEXTEN \
| ISIG | NOFLSH | TOSTOP | PENDIN)
#endif
***************
*** 3057,3064 ****
don't send XON/XOFF characters but we do recognize them. */
if ((q->snew.c_cflag & CRTSCTS) != 0)
{
! iset = IXON;
! iclear = IXOFF;
fdo = TRUE;
break;
}
--- 3059,3068 ----
don't send XON/XOFF characters but we do recognize them. */
if ((q->snew.c_cflag & CRTSCTS) != 0)
{
! /*<1> iset = IXON;*/
! iset = 0; /*<1>I don't want XON (DC1) eaten!*/
! /*<1> iclear = IXOFF;*/
! iclear = IXON | IXOFF; /*<1>*/
fdo = TRUE;
break;
}
The above patch forces hardware full-duplex RTS/CTS flow control on during
inbound and outbound UUCP sessions.
I have to reapply this patch every time I upgrade my FreeBSD systems.
Frank Durda IV <uhclem@nemesis.lonestar.org>|"The Knights who say "LETNi"
or uhclem%nemesis@fw.ast.com (Fastest Route)| demand... A SEGMENT REGISTER!!!"
...letni!rwsys!nemesis!uhclem |"A what?"
...decvax!fw.ast.com!nemesis!uhclem |"LETNi! LETNi! LETNi!" - 1983
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0s9kfA-0004vwC>
