All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernard Pidoux <pidoux@ccr.jussieu.fr>
Cc: linux-hams@vger.kernel.org,
	List for LINUX ROSE/FPAC network switch <fpac@f6fbb.org>
Subject: AX25 udev pseudo tty support
Date: Mon, 21 Mar 2005 00:38:14 +0100	[thread overview]
Message-ID: <423E0966.4050702@ccr.jussieu.fr> (raw)
In-Reply-To: <4234CBD4.3010600@ccr.jussieu.fr>

Hi,

I have simplified usage of AX25 udev support by mkiss, kissattach and 
ax25ipd applications and tools for AX25.

There is no more need to specify full slave pseudo tty device names.
kissattach command line now only refers to /dev/pts, and the program 
will find itself the slave pseudo tty related to the master.
The same for ax25ipd in ax25ipd.conf.

Please have a look at the following script including some comments.
If you need help or have any questions, please do not hesitate to mail me.

Of course, my modifications are backward compatible with previous
usage of devfs pseudo ttys (which is much more complicated).

I have checked that it works with kernels 2.2.26 and 2.6.11.


  #!/bin/sh
  #
  # This is a sample script to demonstrate the use of udev
  # Unix98 master-slave pseudo tty device pairs for AX25
  # on Linux kernel = and > 2.2.
  #
  # Udev system usage is much more simple than former devfs.
  # There is a unique master pseudo tty, and a corresponding
  # slave pseudo tty is automatically created when opening
  # the master tty. Both are tunneled.
  #
  # AX25 ports 0 and 1 are declared in /etc/ax25/axport file
  #
  # In file /etc/ax25/ax25ipd.conf is declared a slave pseudo tty
  # device /dev/pts
  # to make a tunnel link with master /dev/ptmx opened by the
  # command line kissattach /dev/ptmx
  #
  # The following files have been modified to accept
  # /dev/ptmx - /dev/pts request :
  # ax25-apps-0.0.6/ax25ipd/io.c
  # ax25-tools-0.0.8/kiss/mkiss.c and kissattach.c
  #
  # The patched files can be downloaded from :
  # http://f6bvp.free.fr/logiciels/Unix98-pseudo-tty/
  #
  # Bernard Pidoux f6bvp@amsat.org
  #
  echo 1 > /proc/sys/net/ipv4/ip_forward
  # load ax25 packet radio, rose and mkiss modules
  /sbin/modprobe ax25
  /sbin/modprobe rose
  /sbin/modprobe mkiss
  /bin/sleep 4
  # mkiss opens two master pseudo ttys connected to serial port ttyS0
  /usr/local/sbin/mkiss -s 38400 -l /dev/ttyS0 /dev/ptmx /dev/ptmx
  /bin/sleep 4
  # kissattach links a slave pseudo tty to ax25 port 0
  /usr/local/sbin/kissattach /dev/pts 0 44.151.75.150
  # kissattach links a second slave pseudo tty to ax25 port 1
  /usr/local/sbin/kissattach /dev/pts 1 44.151.75.150
  # kissattach attachs a master pseudo tty to ax25 port 2
  # and creates a slave tty, making a tunnel between them
  /usr/local/sbin/kissattach -l -m 256 /dev/ptmx 2 44.151.75.150
  /bin/sleep 4
  # ax25ipd links slave pseudo tty to UDP port declared in ax25ipd.conf
  /usr/local/sbin/ax25ipd -l4
  /bin/sleep 4
  # start ROSE / FPAC AX25 level 3 packet switch application
  /usr/local/sbin/fpac/fpac.sh
  /bin/sleep 4
  # starts Dx cluster application using level 3 ROSE/FPAC routing
  /usr/local/sbin/dxnet/dxnet.sh &
  /bin/sleep 4
  # start mheardd daemon
  /usr/local/sbin/mheardd
  #


73 de Bernard, f6bvp.

  reply	other threads:[~2005-03-20 23:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-29 18:36 [PATCH 2.6] convert netrom to module_param Stephen Hemminger
2004-07-29 23:02 ` David S. Miller
2004-11-02 16:48 ` mkiss, udev and kernel 2.6 Bernard Pidoux
2004-11-12  0:56   ` AA6QN
2004-11-12  4:59     ` Jeremy Utley
2005-03-13 23:25     ` Bernard Pidoux
2005-03-20 23:38       ` Bernard Pidoux [this message]
2004-11-02 17:34 ` xfbb ports and kernel 2.6.8 Bernard Pidoux

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=423E0966.4050702@ccr.jussieu.fr \
    --to=pidoux@ccr.jussieu.fr \
    --cc=fpac@f6fbb.org \
    --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.