All of lore.kernel.org
 help / color / mirror / Atom feed
* Can only connect to RMS gateway once
@ 2016-06-02 19:46 Basil Gunn
  2016-06-03  0:01 ` David Ranch
  0 siblings, 1 reply; 10+ messages in thread
From: Basil Gunn @ 2016-06-02 19:46 UTC (permalink / raw)
  To: Linux Hams

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

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: Can only connect  to RMS gateway once
@ 2016-06-03 20:16 Basil Gunn
  2016-06-03 23:45 ` David Ranch
  2016-06-04 20:43 ` Basil Gunn
  0 siblings, 2 replies; 10+ messages in thread
From: Basil Gunn @ 2016-06-03 20:16 UTC (permalink / raw)
  To: linux-hams

> Have you tried to disable smp (in grub, boot the kernel with the
> cmdline option nosmp)? Did then the problem still occur?

I disabled SMP and the problem of socket remains open after disconnect
still occurs with kernels >= 4.2.

cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1
root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes
maxcpus=0 rootwait


I built a 4.1.21 kernel from the raspbian repo
https://github.com/raspberrypi/linux/tree/rpi-4.1.y

and the problem does NOT exist with that kernel.

I built a 4.2.8 kernel from the raspbian repo
https://github.com/raspberrypi/linux/tree/rpi-4.2.y

and the problem DOES exist with that kernel.
Showing connection listening after final disconnect.

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


/Basil n7nix

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-06-05 23:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-02 19:46 Can only connect to RMS gateway once Basil Gunn
2016-06-03  0:01 ` 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

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.