Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
From: Basil Gunn <basil@pacabunga.com>
To: Linux Hams <linux-hams@vger.kernel.org>
Subject: Can only connect to RMS gateway once
Date: Thu, 2 Jun 2016 12:46:08 -0700	[thread overview]
Message-ID: <20160602124608.29163c27@brox.localnet> (raw)

This problem was was originally described on the Linux RMS-Gateway
group in March.

I've done a little investigation on the 'Can only connect to gateway
once' problem. RMS Gateway is definitely broken when running on
kernels after 4.1.6 or so. My 4.1.6 kernel didn't exhibit symptoms but
as mentioned previously a 4.2.0 kernel didn't work. My 4.4.10 kernel
doesn't work as well and I'm assuming the problem persists in the
latest kernels.

Using 'netstat --ax25' this is the expected reponse. You can see the
connection in operation between N7NIX-0 & N7NIX-11.

Active AX.25 sockets
Dest       Source     Device  State        Vr/Vs    Send-Q  Recv-Q
N7NIX-0    N7NIX-11   ax0     ESTABLISHED  000/001  2112    0
*          N7NIX-11   ax0     LISTENING    000/000  0       0

After the connection the sockect for N7NIX-0 should go away as shown
below:

Active AX.25 sockets
Dest       Source     Device  State        Vr/Vs    Send-Q  Recv-Q
*          N7NIX-11   ax0     LISTENING    000/000  0       0

On kernels newer then 4.1.6 the N7NIX-0 socket connection lingers
around and N7NIX can no longer connect to N7NIX-11.

Active AX.25 sockets
Dest       Source     Device  State        Vr/Vs    Send-Q  Recv-Q
*          N7NIX-11   ax0     LISTENING    000/000  0       0
N7NIX-0    N7NIX-11   ???     LISTENING    001/004  0       0
N7NIX-0    N7NIX-11   ???     LISTENING    001/004  0       0
N7NIX-0    N7NIX-11   ???     LISTENING    001/004  0       0
N7NIX-0    N7NIX-11   ???     LISTENING    001/004  0       0

If I 'ifconfig down' the device, kill kissattach and reattach I can
connect once, again.  There have been many changes in the net/ax25
files since kernel version 4.1.6 and I'm guessing that it is something
that has changed there that is causing problems for RMS Gateway or
ax25d.

/Basil n7nix

             reply	other threads:[~2016-06-02 19:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 19:46 Basil Gunn [this message]
2016-06-03  0:01 ` Can only connect to RMS gateway once David Ranch
2016-06-03  8:19   ` Thomas Osterried
2016-06-03 15:52     ` David Ranch
  -- strict thread matches above, loose matches on Subject: below --
2016-06-03 20:16 Basil Gunn
2016-06-03 23:45 ` David Ranch
2016-06-04 20:43 ` Basil Gunn
2016-06-04 20:57   ` David Ranch
2016-06-04 21:32     ` Basil Gunn
2016-06-05 23:46       ` Basil Gunn

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=20160602124608.29163c27@brox.localnet \
    --to=basil@pacabunga.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox