All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cathryn Mataga <cathrynm@junglevision.com>
Cc: linux-hams@vger.kernel.org
Subject: Re: kissattach/kissnetd versus ptyq ttyq and ptmx/pts
Date: Thu, 06 Jul 2006 01:14:02 -0700	[thread overview]
Message-ID: <44ACC64A.6000609@junglevision.com> (raw)
In-Reply-To: <44AB6C66.4050000@junglevision.com>

Cathryn Mataga wrote:
> In my original Linux ham radio setup, I had the following...
>
> /sbin/kissnetd -f 1064 /dev/ptyq3 /dev/ptyq4&
> sleep 4
> /sbin/kissattach -l /dev/ttyq3 lb1 192.168.0.2&
> /sbin/kissattach -l /dev/ttyq4 lb2 192.168.0.3&
>
> for creating the loopback device.
>
> Seems that in Fedora 4 ptyq3 and ttyq3 don't exist anymore.  I tried 
> using
> MAKENODE ptyq3 and ttyq3 to create these device files, but I don't 
> think they're
> working?  I get this error.
>
> kissattach: open: No such device or address
>
> I've been googling the pseudo terminals for Linux and it seems that 
> the new way is
> with ptmx/pts and ptyq3 and ttyq3 are the old style.  But I'm not 
> sure, will kissattach
> works with these? Or is there a way to get ptyq3 ttyq3 working in 
> Fedora 5?
>
> What's the right way to go about this, these days?
> - 


Hmm, well I'm still kind of stuck on this a little bit. 

This is what I'm thinking is the situation, just puzzling at a few files 
here.

1.  I don't see an obvious option to compile the kernel with ptyq/ttyq 
support.
Maybe this is hidden somewhere?  Or maybe this should be working, and I've
missed it?  This would be easiest.  Maybe it's working on FC5 and I've 
confused myself
into thinking it's not, but I don't know.

2.  kissnetd and kissattach aren't that complicated.  But it looks like 
they are designed
to work with ptyq/ttyq style devices, and nothing related to ptmx exists.

3.  I naively thought, well, I'll just put the servers on ptmx and fish 
around on /dev/pts/[0-9]
to see if anything can connect, and this doesn't works. It seems to 
print some kind of messages
but then it gets a read error.

4.  It looks like from the man page ptmx needs a call to grantpt and to 
unlockpt.  it looks
like an open on /dev/ptmx creates a random slave name.  So somehow this 
has to be printed
out, or output to a file. and then use some shell magic to get those 
names to kissattach so it
can connect to them?

5.  This is speculation, but I think kissattach maybe doesn't have to 
change.  But kissnetd does.
There are some ioctl statements in kissattach, and I'm not sure of any 
of these..

6.  Is this the tip of the iceberg?  I use virtual ttys with mkiss 
also.  Maybe that's all I need.
I'm thinking of going in and adding a few lines to kissnetd and see how 
that goes.  Unless
someone who 'knows what's going on' has a better idea.



  reply	other threads:[~2006-07-06  8:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-23 20:03 Field Day logger for Linux? James Washer
2006-06-23 20:19 ` Douglas Cole
2006-06-23 20:20 ` Bob Nielsen
2006-06-23 22:17 ` Jim Bayer
2006-06-23 22:28   ` Tomi Manninen
2006-06-23 22:33   ` Geoff Blake
2006-06-24  4:33     ` Jim Bayer
2006-07-04 23:58     ` 6pack ROMS Cathryn Mataga
2006-07-05  2:48       ` Chuck Hast
2006-07-05  7:38         ` kissattach/kissnetd versus ptyq ttyq and ptmx/pts Cathryn Mataga
2006-07-06  8:14           ` Cathryn Mataga [this message]
2006-07-06  9:28             ` Bernard Pidoux
2006-07-06  9:56           ` Mike McCarthy, W1NR
2006-07-06 15:20           ` Robert Jenkins
2006-07-06 20:33             ` Cathryn Mataga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44ACC64A.6000609@junglevision.com \
    --to=cathrynm@junglevision.com \
    --cc=linux-hams@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.