Skip to contentSkip to conversation

Compilin ax25-tools

DISCUSSION Bernard Pidoux 1 participant 2 messages Feb 14, 2004

lore
Share & tools
lore
#0 lore raw

Hi Jarmo,

Did you succeed in compiling ax25-tools.0.0.8 with kernel 2.6 ?

Using Mandrake Linux 10 rc2 I had to apply the attached patch for compiling ax25-tools.0.0.8

73 de Bernard, f6bvp

ax25/axspawn.c +1 -1
diff -ru ax25-tools-0.0.8/ax25/axspawn.c ax25-tools-0.0.8b/ax25/axspawn.c
@@ -124,7 +124,7 @@
 #include <paths.h>
 #include <errno.h>
 #include <syslog.h>
-#include <sys/time.h>
+#include <time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>
hdlcutil/hdrvcomm.c +7 -0
diff -ru ax25-tools-0.0.8/hdlcutil/hdrvcomm.c ax25-tools-0.0.8b/hdlcutil/hdrvcomm.c
@@ -48,7 +50,14 @@
 #include "hdrvcomm.h"
 #include "usersmdiag.h"
 #include <net/if_arp.h>
+
+#ifdef __GLIBC__
+#include <net/ethernet.h>
+#else
 #include <linux/if_ether.h>
+#endif
+#include <netinet/in.h>
+
 #include <linux/if_packet.h>
 #ifndef SOL_PACKET
 #define SOL_PACKET  263
kiss/net2kiss.c +2 -0
diff -ru ax25-tools-0.0.8/kiss/net2kiss.c ax25-tools-0.0.8b/kiss/net2kiss.c
@@ -49,6 +49,8 @@
 #include <sys/socket.h>
 #include <net/if.h>
 
+#include <netinet/in.h>
+
 #ifdef __GLIBC__
 #include <net/ethernet.h>
 #else
#1 lore raw

script for 2.6 multi kiss dual port TNC

Hi,

With kernel 2.6 there are some differences for initializing a multi serial kiss connexion using a dual port TNC. This is part of my rc.ax25 script for two KPC9612 tncs I am using.
Hope it will help starting with 2.6

73 de Bernard, f6bvp

#!/bin/sh

# /etc/rc.d/rc.ax25
# script for initializing ax25 multi kiss connexions
# on two KPC9612 dual ports
# to be used with kernel 2.6
# [email protected]
echo "Attaching kiss serial ports ax0, ax1, ax2, ax3"
# radio ports ax0 ax1 ax2 ax3 are declared in /etc/axports
# serial port 1 at 38400 bauds connected to KPC9612 #2
/usr/local/sbin/mkiss -s 38400 -l /dev/tts/1 /dev/pty/m3 /dev/pty/m4
# PORT #1 KPC9612 = 1200 ---> ax0
/usr/local/sbin/kissattach -m 256 /dev/pty/s3 ax0 44.151.75.15
# PORT #2 KPC9612 = 9600 ---> ax1
/usr/local/sbin/kissattach -m 256 /dev/pty/s4 ax1 44.151.75.15
# serial port 0 at 38400 bauds connected to KPC9612 #1
/usr/local/sbin/mkiss -s 38400 -l /dev/tts/0 /dev/pty/m1 /dev/pty/m2
# PORT #1 KPC9612 = 1200 ---> ax2
/usr/local/sbin/kissattach -m 256 /dev/pty/s1 ax2 44.151.75.15
# PORT #2 KPC9612 = 9600 ---> ax3
/usr/local/sbin/kissattach -m 256 /dev/pty/s2 ax3 44.151.75.15
#