2.4.0-test1: AX.25 not working ? [long]

From: Pierfrancesco Caci (ik5pvx@penny.ik5pvx.ampr.org)
Date: Fri Jun 23 2000 - 01:44:41 EST


Hi all, is there anyone successfully using the latest kernels (from
2.3.99-pre8 up to 2.4.0-test1) with amateur radio ax.25?

My configuration is a single tnc attached to a serial port with
kissattach.

This is the script: (/etc/network/interfaces) [this is a Debian Potato machine]

iface ax0 inet static
        address 44.134.210.241
        netmask 255.0.0.0
        network 44.0.0.0
        broadcast 44.255.255.255
# gateway 44.134.208.208
    pre-up echo -n "Starting AX25 interface..."
        pre-up kissattach -l -m 256 /dev/ttyS0 vhf 44.134.210.241
        pre-up sleep 2
        pre-up axparms -assoc ik5pvx-15 elena
        pre-up echo "0" > /proc/sys/net/ax25/ax0/backoff_type
        pre-up echo "1" > /proc/sys/net/ax25/ax0/ip_default_mode
        pre-up echo "4" > /proc/sys/net/ax25/ax0/standard_window_size
        pre-up echo "12" > /proc/sys/net/ax25/ax0/maximum_retry_count
# pre-up echo "512"> /proc/sys/net/ax25/ax0/maximum_packet_length <- non supportato
        up route add -host 44.134.208.208 dev ax0
        up route add -host 44.134.208.176 gw 44.134.208.208
        up route add -host 44.134.210.246 gw 44.134.208.208
        up arp -H ax25 -i ax0 -s 44.134.208.176 ik5pwa-11
        up arp -H ax25 -i ax0 -s 44.134.208.208 ik5pwa-11
        up echo 0 > /proc/sys/net/ipv4/conf/ax0/log_martians
        up ifup ax0:1
        up ifup nr0
        up ifup rose0
        up ax25d -l &
    up echo " done. (All radio interfaces are up)."
    down echo -n "Stopping AX25 interface..."
        down killall -9 ax25d || true
        down ifdown nr0
        down ifdown rose0
        down ifdown ax0:1
        down axparms -assoc ik5pvx-15 delete
        post-down killall -9 kissattach
    post-down echo " done. (All radio interfaces are down and kissattach removed)."

This is how the kernel sees it:

# ifconfig ax0
ax0 Link encap:AMPR AX.25 HWaddr IK5PVX-1
          inet addr:44.134.210.241 Mask:255.0.0.0
          UP RUNNING MTU:256 Metric:1
          RX packets:1829 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3577 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          

It seems to be working but with listen I can see a lot of [invalid]
packets:
 
vhf: fm [invalid] to [invalid] ctl SABM+ 08:30:11
vhf: fm IK5PVX-1 to IK5PWA-11 ctl I02^ pid=CC(IP) len 60 08:30:13
IP: len 60 44.134.210.241->44.134.208.176 ihl 20 ttl 64 DF prot TCP
TCP: 619->ssh Seq xa5184c7f SYN Wnd 32488 MSS 536
vhf: fm IK5PWA-11 to IK5PVX-1 ctl UI^ pid=CC(IP) len 60 08:30:16
IP: len 60 44.134.208.176->44.134.210.241 ihl 20 ttl 63 DF prot TCP
TCP: ssh->619 Seq xa42c9dfd Ack xa5184c80 ACK SYN Wnd 32696 MSS 536
vhf: fm IK5PWA-11 to IK5PVX-1 ctl RR3v 08:30:16
vhf: fm IK5PWA-11 to IK5PVX-1 ctl UI^ pid=CC(IP) len 60 08:30:18
IP: len 60 44.134.208.176->44.134.210.241 ihl 20 ttl 63 DF prot TCP
TCP: ssh->619 Seq xa42c9dfd Ack xa5184c80 ACK SYN Wnd 32696 MSS 536
vhf: fm [invalid] to [invalid] ctl SABM+ 08:30:21
vhf: fm IK5PWA-11 to IK5PVX-1 ctl UI^ pid=CC(IP) len 60 08:30:25
IP: len 60 44.134.208.176->44.134.210.241 ihl 20 ttl 63 DF prot TCP
TCP: ssh->619 Seq xa42c9dfd Ack xa5184c80 ACK SYN Wnd 32696 MSS 536
vhf: fm [invalid] to [invalid] ctl SABM+ 08:30:31
vhf: fm IK5PWA-11 to IK5PVX-1 ctl UI^ pid=CC(IP) len 60 08:30:37
IP: len 60 44.134.208.176->44.134.210.241 ihl 20 ttl 63 DF prot TCP
TCP: ssh->619 Seq xa42c9dfd Ack xa5184c80 ACK SYN Wnd 32696 MSS 536
vhf: fm [invalid] to [invalid] ctl SABM+ 08:30:41
vhf: fm IK5PVX-1 to IK5PWA-11 ctl I03^ pid=CC(IP) len 52 08:30:41
IP: len 52 44.134.210.241->44.134.208.176 ihl 20 ttl 64 DF prot TCP
TCP: 619->ssh Seq xa5184c80 Ack xa42c9dfe ACK FIN Wnd 32488

obviously the connection is never set up

kissattach appears to be running:

# ps -ax|grep kiss
  112 ? S 0:00 kissattach -l -m 256 /dev/ttyS0 vhf 44.134.210.241

and this is the content of the /proc files:

root@penny:/proc/net # cat ax25
c0486200 ax0 * * 1 0 0 0 4 10 0 3 0 300 0 0 3 12 5 4 256 * * *
c0486e00 ax0 IK5PVX-1 IK5PWA-11 3 5 0 5 0 10 0 3 224 300 0 0 0 12 5 4 256 * * *
c3d5f600 ax0 IK5PVX-15 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 159
c3d5f800 ax0 IK5PVX-14 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 158
c3d5fa00 ax0 IK5PVX-13 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 157
c3d5fc00 ax0 IK5PVX-12 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 156
c3d5fe00 ax0 IK5PVX-11 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 155
c232b000 ax0 IK5PVX-10 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 154
c232b200 ax0 IK5PVX-9 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 153
c232b400 ax0 IK5PVX-6 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 152
c232b600 ax0 IK5PVX-5 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 151
c232b800 ax0 IK5PVX-3 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 150
c232ba00 ax0 IK5PVX-2 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 149
c232bc00 ax0 IK5PVX-1 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 148
c232be00 ax0 IK5PVX-0 * 0 0 0 0 0 10 0 3 0 300 0 0 0 12 5 4 256 0 0 146

root@penny:/proc/net # cat arp
IP address HW type Flags HW address Mask Device
44.134.208.176 0x3 0x6 IK5PWA-11 * ax0
192.168.22.2 0x1 0x2 02:60:8C:4A:EE:8E * eth0
44.134.208.208 0x3 0x6 IK5PWA-11 * ax0
44.134.210.243 0x0 0x0 * nr0

root@penny:/proc/net # cat ax25_calls
Policy: 0
  1001 IK5PVX-15

root@penny:/proc/net # cat ax25_route
callsign dev mode digipeaters

[I can't see anything strange in these files.]

root@penny:/proc/sys/net/ax25/ax0 # for i in *;do echo -ne "$i:\t"; cat $i; done
ax25_default_mode: 0
backoff_type: 0
connect_mode: 2
dama_slave_timeout: 18000
extended_window_size: 32
idle_timeout: 0
ip_default_mode: 1
maximum_packet_length: 256
maximum_retry_count: 12
protocol: 0
standard_window_size: 4
t1_timeout: 1000
t2_timeout: 300
t3_timeout: 30000

root@penny:/proc/sys/net/ipv4/conf/ax0 # for i in *;do echo -ne "$i:\t"; cat $i; done
accept_redirects: 1
accept_source_route: 1
bootp_relay: 0
forwarding: 1
log_martians: 0
mc_forwarding: 0
proxy_arp: 0
rp_filter: 1
secure_redirects: 1
send_redirects: 1
shared_media: 1
tag: 0

The last working kernel is 2.3.99-pre6, I never tested pre7 and pre9
on this machine.

I have a few days to help you developers track down this problem. I'm
not very good at using debugging tools but I'm eager to learn.
Thanks,
Pf

-- 

------------------------------------------------------------------------------- Pierfrancesco Caci | ik5pvx | mailto:p.caci@tin.it - http://gusp.infogroup.it Firenze - Italia | Office for the Complication of Otherwise Simple Affairs Linux penny 2.4.0-test1 #1 Thu Jun 22 11:46:01 CEST 2000 i686 unknown

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:25 EST