Linux-Hams archive - January 1997: Re: Request for Comments

Re: Request for Comments

Matthias Welwarsky (kcx@mail.dy.fi)
Thu, 02 Jan 1997 11:01:42 +0100


Jonathan Naylor wrote:
>
> I have an idea, and I would like it be thoroughly aired before
> implementing it.
>
> How about removing digi-peating from the kernel and putting into user
> space ?

I definitely like this idea. But the main question that arises with this
is, how to interface the userspace-digipeater with the kernel-ax25. What
API should be used? Hm, I'd like to have something like this:

Get a socket(), bind() it to an address that will be the address to
digipeat via, then signal to the kernel that we would like to digipeat
ourselves, maybe by setsockopt(). Then listen() on that socket.

If the kernel sees a connect request that is either directed to the
above address or has the address as the next digipeater to use, it will
signal it to the socket. Hm. Is there a way to get the addressfield of
the request without accepting the request? Would be bad style to
accept() while we don't even know if and where to reach the intended
destination... We are required to pass the
SABM through, maybe with modified address field (a la FlexNet) and
accept the incoming request _after_ we received the confirmation from
the peer.

Hm, seems to be difficult realizing this via BSD-Sockets ;-)

--
Matthias