TMXR: Added support to reasonably set modem bits when a line has dedicated listen port defined or uses datagram transport.
This commit is contained in:
parent
ccabc026d5
commit
cde0be5573
1 changed files with 6 additions and 5 deletions
|
@ -449,10 +449,7 @@ lp->rxbpr = lp->rxbpi = lp->rxcnt = lp->rxpcnt = 0; /* init receive indexes
|
|||
if (!lp->txbfd || lp->notelnet) /* if not buffered telnet */
|
||||
lp->txbpr = lp->txbpi = lp->txcnt = lp->txpcnt = 0; /* init transmit indexes */
|
||||
lp->txdrp = 0;
|
||||
if (lp->modem_control) {
|
||||
lp->modembits &= ~TMXR_MDM_INCOMING;
|
||||
lp->modembits |= TMXR_MDM_CTS | TMXR_MDM_DSR;
|
||||
}
|
||||
tmxr_set_get_modem_bits (lp, 0, 0, NULL);
|
||||
if ((!lp->mp->buffered) && (!lp->txbfd)) {
|
||||
lp->txbfd = 0;
|
||||
lp->txbsz = TMXR_MAXBUF;
|
||||
|
@ -1384,6 +1381,10 @@ if ((lp->sock) || (lp->serport) || (lp->loopback)) {
|
|||
else
|
||||
incoming_state = TMXR_MDM_RNG | TMXR_MDM_DCD | TMXR_MDM_DSR;
|
||||
}
|
||||
else
|
||||
if ((lp->master) || (lp->mp && lp->mp->master) ||
|
||||
(lp->port && lp->destination))
|
||||
incoming_state = TMXR_MDM_DCD | TMXR_MDM_DSR;
|
||||
else
|
||||
incoming_state = 0;
|
||||
lp->modembits |= incoming_state;
|
||||
|
|
Loading…
Add table
Reference in a new issue