[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Manpage - cua, ppp
> 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?
The error is because an ioctl(, TIOCMGET, ) failed. This should
never happen on a real tty (although it does happen for pseudo ttys -
this has been fixed in -current).
I don't know why it's failing for you, but then, I've never had the
opportunity to run ppp on a mac.... sorry.
> 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/
--
Brian <brian@Awfulhak.org> <brian@FreeBSD.org>
<http://www.Awfulhak.org> <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour ! <brian@uk.FreeBSD.org>