[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-hams
Subject:    Re: Unable to receive UI frames with DGRAM socket
From:       thomas () habets ! se
Date:       2021-09-25 11:27:41
Message-ID: CA+kHd+cavMi-_vvAoJTvc2EDUH7nbMOQ9QqVkx0TOh+KJOOpjA () mail ! gmail ! com
[Download RAW message or body]

On Fri, 24 Sep 2021 19:18:25 +0100, David Ranch <linux-hams@trinnet.net> said:
> I would recommend to start a discussion with the Linux
> AX.25 maintainer who would know better on a programmatic level:

Thanks, I'll do that.

> Ps.  It dawned on me that there is another approach to give non-root yet
> promiscuous AX.25 listening abilities in Linux:
>
>     ax25spyd:  https://salsa.debian.org/debian-hamradio-team/ax25spyd

Thanks. I had a look, and it seems that this is essentially a root
daemon that multiplexes AX.25 access through an API.

Note that I don't actually want promiscuous AX.25 listening. I just
want to bind() and then receive UI frames destined for that
address. Just like UDP.

If I understand that correctly then really the applications no longer
use AX.25 sockets, and I start wondering if it's even worth having
support for them in the kernel, as opposed to just having a KISS
multiplexer daemon plus a library.

I tried out ax25spyd and as expected I got:

socket(AF_INET, SOCK_PACKET, 0x300 /* IPPROTO_??? */) = -1 EPERM
(Operation not permitted)

--
typedef struct me_s {
  char name[]      = { "Thomas Habets" };
  char email[]     = { "thomas@habets.se" };
  char kernel[]    = { "Linux" };
  char *pgpKey[]   = { "http://www.habets.pp.se/pubkey.txt" };
  char pgp[] = { "9907 8698 8A24 F52F 1C2E  87F6 39A4 9EEA 460A 0169" };
  char coolcmd[]   = { "echo '. ./_&. ./_'>_;. ./_" };
} me_t;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic