Linux-Hams archive - December 1996: ax25-2.1.9a and baycom

ax25-2.1.9a and baycom

Davide G. M. Salvetti (zyod@twogardencourtchambers.co.uk)
Sun, 1 Dec 1996 23:28:51 +0100


I've been trying the new ax25-2.1.9a package with kernel 2.1.13 and a
home-brewed baycom modem (tested running under DOS).

Utilities compiled just fine. I configured the baycom driver for ttyS1 with:

setserial /dev/ttyS1 uart none
modprobe baycom modem=1 iobase=0x2f8 irq=3 options=1
axparms -setcall radio IW5DZC-0 (I've a correspondent entry in axports)
ifconfig bc0 up (I guess optional at this stage)

All this did seem to have worked good: indeed listen correctly displays packet
as it should do, though it pretends to read axports from / rather than from its
natural place /etc/ax25 (which sound me strange: I'm pretty sure not to have
messed things with makefiles; but this isn't the problem).

However I wasn't able to run call (which pretends to read axports from / as
well), since it keeps exiting this way:

# call radio IK5PWJ-6
GW4PTS AX.25 Connect v1.11
socket: Invalid argument

I'm having similar results with axparms -assoc and a lot of other things as
well.

Here's what strace tells me (hope it helps you):

===============================================================================
# strace call radio IK5PWJ-6
SYS_136(0, 0x3, 0xc, 0, 0x8) = 0
geteuid() = 0
getuid() = 0
getgid() = 0
getegid() = 0
brk(0) = 0x80a18c8
brk(0x80a18f0) = 0x80a18f0
brk(0x80a2000) = 0x80a2000
[... some locale stuff ...]
open("/axports", O_RDONLY) = 3
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 4
fstat(3, {st_mode=S_IFREG|0644, st_size=159, ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x40000000
read(3, "radio IW5DZC-0 1200 "..., 8192) = 159
ioctl(4, SIOCGIFCONF, 0xbffff4a0) = 0
ioctl(4, SIOCGIFFLAGS, 0xbffff4a8) = 0
ioctl(4, 0x8927, 0xbffff4a8) = 0
ioctl(4, SIOCGIFFLAGS, 0xbffff4a8) = 0
ioctl(4, 0x8927, 0xbffff4a8) = 0
read(3, "", 8192) = 0
close(3) = 0
munmap(0x40000000, 8192) = 0
close(4) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(4, 192), ...}) = 0
mmap(0, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x40000000
ioctl(1, TCGETS, {B9600 opost isig icanon echo ...}) = 0
write(1, "GW4PTS AX.25 Connect v1.11\n", 27GW4PTS AX.25 Connect v1.11
) = 27
socket(PF_??? (0x3), SOCK_SEQPACKET, , 0) = -1 EINVAL (Invalid argument)
write(2, "socket: Invalid argument\n", 25socket: Invalid argument
) = 25
_exit(0) = ?
===============================================================================

You see socket(2) is called with four arguments (hence the error) the third of
which is nul. I know call.c has not been tampered with and it always calls
socket(2) with three arguments. I can't figure out what's wrong.

I will be very grateful to whom may help me!

73 de IW5DZC

-- 
Davide G. M. Salvetti
http://www.difi.unipi.it/~df165215/