[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Manpage - cua, ppp



-----BEGIN PGP SIGNED MESSAGE-----

In /usr/share/man/cat4/tty.0 it says...


     For hardware terminal ports, dial-out is supported through matching de-
     vice nodes called calling units.  For instance, the terminal called
     /dev/tty03 would have a matching calling unit called /dev/cua03. These
     two devices are normally differentiated by creating the calling unit de-
     vice node with a minor number 128 greater than the dial-in device node.  

The "normally" worries me a little,  so I tried out
 knife$ uname -a
 OpenBSD knife.xserv.com.au 2.5 GENERIC#0 mac68k

 knife$ ls -l /dev/tty0*
 crw-r-----  2 uucp  wheel   12,   0 Jun  4 11:57 /dev/tty00
 crw-r-----  1 uucp  wheel   12,   1 Jun  4 15:13 /dev/tty01    

 knife$ ls -l /dev/cua*
 crw-r--r--  1 root  wheel   12, 128 Feb 18 14:33 /dev/cua00
 crw-r--r--  1 root  wheel   12, 129 Feb 18 14:26 /dev/cua01

 knife$ echo at > /dev/tty00   # can also use cu,  whatever,  works fine

 knife$ echo at > /dev/cua00
 sh: cannot create /dev/cua00: Device not configured

Which suggests that the "normally" doesn't apply to  mac68k at least. 
Anyway,  the reason why I was playing around was to set up a PPP link.
It seems that /usr/sbin/ppp really wants a cua-like device,  based on

 knife$ /usr/sbin/ppp
 Working in interactive mode
 Using interface: tun0
 ppp ON knife> set device /dev/tty00
 ppp ON knife> set speed 38400
 ppp ON knife> term
 Warning: deflink: Open: Cannot get modem status: Inappropriate ioctl for device


A quick browse through the ppp source code didn't tell me anything that helped.
Am I doing something wrong here,  or is there something else going on here?
And under what conditions does the cua devices have which minor numbers?


Regards,
   Greg Baker

Aptec IT Solutions      Phone:  02 8977 0000
Suite 11-12, 1st floor  Fax:    02 9451 8217
Belrose Centre          Mobile: 0413 940 071
25 Ralston Ave          Email:  Greg_Baker@aptec.net.au
Belrose NSW 2085        WWW:    http://www.aptec.net.au/


This message has been digitally signed by its author.   Public keys
to verify its authenticity  and for confidential correspondence are
available at http://www.aptec.net.au/~greg_baker/pgp.html

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv

iQCVAwUBN1otDyreTldmmPyxAQGACwQAizqtkOABRQg1I6vbOrZGlf0ciaRlfgaQ
O3csnfUrSvz80GxfuREdILf7/zldwM5m7cZhrx/0CMoJM6bZagzIUjIDpmsJshOC
aKQoTineCh4FcdUUxCP1G1IjTKGQZnVxXU9DA70uFdJ1N0oXO4HoC6f6h+PxqP1p
2+Q4gCoSy/k=
=cQ17
-----END PGP SIGNATURE-----