From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199702121532.IAA23741@ellpspace.math.ualberta.ca> Date: Wed, 12 Feb 1997 08:32:51 -0700 (MST) From: Michal Jaegermann Subject: Re: PPP again In-Reply-To: > Aaron S. Carmichael quotes: > > >From ppp-howto > > $2 - name of the tty device (such as /dev/cua0) > > where do you get ttys0? > dial out ya use cua#... Sigh! I wonder how many times this will return. See below for details. Didn't you ever see an incorrect Linux documentation? > >From man PPPD > > mru > Set the MRU [Maximum Receive Unit] value to for > negotiation. pppd will ask the peer to send pack- > ets of no more than bytes. The minimum MRU > value is 128. The default MRU value is 1500. A > value of 296 is recommended for slow links (40 > bytes for TCP/IP header + 256 bytes of data). Ok, so maybe new versions of ppp allow for 128 bytes packetes. As you can see from a quoted text this leaves you with 88 bytes for data - like in a very old kermit, waxed nostalgic. :-) Seems to be a bit excessive, especially in a light of your description what is happening, and what you qoute recommends 296 for a "small" mru anyway. And now back to regularly scheduled explanations (from Ted Ts'o, who wrote /dev/cuaXX driver in the first place). In case you wonder pppd does proper locking protocol; insert 'lock' in your '/etc/ppp/options' and just make sure that some of your programs are not using binary locks while others text format. Regards, Michal Message-Id: <9605131751.AA13288@dcl.MIT.EDU> In-Reply-To: Tony Nugent's message of Mon, 13 May 1996 07:57:09 +1000, <199605122157.HAA03287@sctnugen.ppp.gu.edu.au> Address: 1 Amherst St., Cambridge, MA 02139 Phone: (617) 253-8091 Precedence: bulk From: "Theodore Y. Ts'o" To: Tony Nugent Cc: linux-net@vger.rutgers.edu, linux-ppp@vger.rutgers.edu Subject: Re: /dev/cua? Vs /dev/ttyS? (was: Re: co-existance of pppd and mgetty ?) Date: Mon, 13 May 1996 19:51:04 +0200 Status: ROr Date: Mon, 13 May 1996 07:57:09 +1000 From: Tony Nugent Can someone kindly explain the difference between the /dev/cua? and /dev/ttyS? devices? /dev/ttySxx devices are fully POSIX-compliant TTY devices. If you are only going to be using one set of tty devices, you should be using /dev/ttySxx. /dev/cuaXX devices are different from /dev/ttySXX in two ways --- first of all, they will allow you to open the device even if CLOCAL is not set and the O_NONBLOCK flag was not given to the open device. This allows programs that don't use the POSIX-mondated interface for opening /dev/ttySxx devices to be able to use /dev/cuaXX to make outgoing phone calls on their modem (cu stands for "callout", and is taken from SunOS). The second way in which /dev/cuaXX differs from /dev/ttySXX is that if they are used, they will trigger a simplistic kernel-based locking scheme: If /dev/ttySXX is opened by one or more processes, then an attempt to open /dev/cuaXX will return EAGAIN. If /dev/cuaXX is opened by one or more processes, then an attempt to open /dev/ttySXX will result the open blocking until /dev/cuaXX is closed, and the carrier detect line goes high. While this will allow for simple lockouts between a user using a modem for callout and a getty listening on the line for logins, it doesn't work if you need to arbitrate between multiple programs wanting to do dialout --- for example, users wanting to do dialout and UUCP. I originally implemented the cuaXX/ttySXX lockout mechanism back before FSSTND established a standard convention for the use of tty lock files. Now that it's there, people should use the tty lock files and not try using /dev/cuaXX. The only reason why /dev/cuaXX hasn't disappeared yet is for backwards compatibility reasons. - Ted -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com