[2276] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Bug or brain-fade?

daemon@ATHENA.MIT.EDU (Kyle Ferrio)
Fri Nov 1 21:24:15 1996

Date: Fri, 1 Nov 1996 21:22:08 -0500 (EST)
From: Kyle Ferrio <kbf@phy.duke.edu>
To: redhat-list@redhat.com
In-Reply-To: <Pine.BSF.3.95.961101193529.16720A-100000@Jupiter.Mcs.Net>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Fri, 1 Nov 1996, Mark Gleaves wrote:

> Is this a bug in RH4.0 or just lack of understanding on my part?
> 
> In /etc/sysconfig/network-scripts/ifup-ppp I see the following:
> 
> if [ "${ESCAPECHARS}" = yes ] ; then
>   opts="$opts asyncmap 00000000"
> fi
> 
> Shouldn't the comparison be "!=" ?  I.e., if $ESCAPECHARS is yes, then
> don't supply an asyncmap and use the default pppd behavior, which is to
> escape just about everything. 

I was just wondering about the "polarity" of $ESCAPECHARS myself. A check
of the pppd manpage reveals that null and 0 asyncmaps are not synonymous,
if I understood.  A 0 prodeces an identity mapping, which is an
affirmation that all controls can be successfully received over the entire
link, from your ISP to you.  A null on the other hand means that -no- 
mapping will be performed.  From the client side, these may seem like the 
same thing.  But a properly configured server should understand the 
difference.  If the client specifies 0, the server assumes that the 
downlink is a clear channel for controls.  But if the client specifies 
null, the server should assume the worst and escape all controls.

So the interpretation of the Redhat $ESCAPECHARS is that "yes" means that 
the channel is clear to controls.  Anything else means null, which in 
turn means that the downlink may not be clear, and the server should escape 
all controls.

Somebody correct me if I'm off here.

> And while I'm on the subject, did anybody else have a problem with a modem
> initialization string of AT&F1 ?  The ampersand seriously confused the
> shell script... 

Where is that?  chat-ppp0?  I don't see that init string anyplace on my 
system.

Kyle Ferrio


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post