Created attachment 373814 [details, diff] ax25-tools-kissattach-pty.diff: Adds symlinking support to kissattach Hi, I figured I'd share some enhancements for ax25-tools. The patches have been sent up-stream already, however there are some useful init script additions. Patches included in this bug... ax25-tools-kissattach-pty.diff: This allows kissattach to generate symlinks and adjust the owner of pty slave devices created by kissattach. The user specifies the PTY device symlink as pty:/dev/symlink-name. This will symlink /dev/symlink-name to the slave PTY device. ax25-tools-kissnetd-pty.diff: Along the same lines, this allows kissnetd to also symlink its slaves. Init scripts included in this bug... kissattach, nrattach: Similar to how net.* and openvpn.* work, these are symlinked to other files of the form kissattach.PORTNAME and nrattach.PORTNAME, where PORTNAME is what's entered in /etc/ax25/{axports,nrports}. kissattach reads /etc/conf.d/kissattach and looks for variables of the form DEV_${PORT} and ARGS_${PORT}, and uses those to specify arguments to kissattach. Likewise for nrattach (which looks for ARGS_${PORT}). An example set-up: portege ~ # grep -v '^$' /etc/ax25/axports | grep -v '^#' TNC VK4MSL-1 9600 255 2 RF TNC IP VK4MSL-2 9600 255 2 Multicast AX/UDP portege ~ # cat /etc/conf.d/kissattach DEV_IP=pty:/dev/axip DEV_TNC=/dev/ttyUSB0 rc_kissattach_TNC_need="kissattach.IP" portege ~ # cat /etc/conf.d/nrattach rc_nrattach_NRTNC_need="net.ax1" portege ~ # tail /etc/conf.d/net config_ax0="null" config_ax1="null" rc_net_ax0_need="kissattach.IP" rc_net_ax1_need="kissattach.TNC net.ax0" Other services can be made to depend on net.ax0 and net.ax1 as required.
Created attachment 373816 [details, diff] ax25-tools-kissnetd-pty.diff: Add symlinking support to kissnetd
Created attachment 373818 [details] kissattach init script
Created attachment 373820 [details] nrattach init script
(In reply to Stuart Longland from comment #0) > Created attachment 373814 [details, diff] [details, diff] > ax25-tools-kissattach-pty.diff: Adds symlinking support to kissattach > > Hi, > > I figured I'd share some enhancements for ax25-tools. The patches have been > sent up-stream already, however there are some useful init script additions. > Hi Stuart, thanks for sharing. I saw your discussion on linux-hams mailing list before. I will add the patch to the tree in next days. Did you get any confirmation from up-stream in meantime?
I did get some confirmation from Thomas Osterried mentioning that they had received the patches, but a few in the group wanted to discuss them first. I haven't seen them actually committed to any repositories as yet, and I hear rumours there's more than one ax25-tools repository out there: just to make life interesting. I guess I should poke the devs concerned and see if we can get further movement on this.
I think the userspace AX.25 tools are so badly fragmented now the chance of these patches going "upstream" is almost zero now. As it is, I'm more or less going the userspace route now with a Python implementation of the AX.25 stack (with maybe the option to spawn `kissattach` as a subprocess).