I am using kernel 2.0.27 and axutils 2.0.12.c both with the mod 9
patch. The connect was made to port ax0, which is a TNC as an ax25
connect to NODE. The NODE entry in ax25d.conf is:
[NODE via AX0]
NOCALL * * * * * * L
default * * * * * * - root /usr/bin/node node
read(0, "c ottawa\r", 1500) = 9
alarm(900) = 470
time([854939418]) = 854939418
open("/var/ax25/node/loggedin", O_RDWR) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=448, ...}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) =
0x400b9000 lseek(4, 0, SEEK_SET) = 0 write(4,
"\214\0\0\0\0\0\0\0kU\3652\32W\365"..., 160) = 160 close(4)
= 0 munmap(0x400b9000, 4096) = 0
socket(PF_??? (0x6), SOCK_SEQPACKET, , 0) = 4 fstat(1,
{st_mode=S_IFSOCK, st_size=0, ...}) = 0 mmap(0, 1024,
PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x400b9000
bind(4, {sa_family=6, sa_data="\0@\1\0\0\0\374a\10@\240Z\5\10"}, 60) =
-1 EADDRNOTAVAIL (Cannot assign requested address)
open("/usr/share/locale/C/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such
file or directory) stat("/etc/locale/C/libc.cat", 0xbffff658) = -1
ENOENT (No such file or directory) stat("/usr/lib/locale/C/libc.cat",
0xbffff658) = -1 ENOENT (No such file or directory)
stat("/usr/lib/locale/libc/C", 0xbffff658) = -1 ENOENT (No such file
or directory) stat("/usr/share/locale/C/libc.cat", 0xbffff658) = -1
ENOENT (No such file or directory)
stat("/usr/local/share/locale/C/libc.cat", 0xbffff658) = -1 ENOENT (No
such file or directory) write(0, "LinuxNode} connect_to: bind:
Can"..., 61) = 61 socket(PF_UNIX, SOCK_STREAM, , 0) = 5
connect(5, {sun_family=AF_UNIX, sun_path="/dev/log"}, 10) = 0
time([854939418]) = 854939418
open("/usr/lib/zoneinfo/localtime", O_RDONLY) = 6 read(6,
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 6460) = 1218 close(6)
= 0 time(NULL) =
854939418 getpid() = 140 write(5,
"<187>Feb 2 22:10:18 node[140]: "..., 82) = 82 close(4)
= 0 fcntl(0, F_SETFL, O_RDONLY) = 0
write(0, "\r", 1) = 1 time([854939418])
= 854939418 open("/var/ax25/node/loggedin", O_RDWR) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=448, ...}) = 0 mmap(0, 4096,
PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x400ba000
lseek(4, 0, SEEK_SET) = 0 write(4,
"\214\0\0\0\0\0\0\0kU\3652\32W\365"..., 160) = 160 close(4)
= 0 munmap(0x400ba000, 4096) = 0
alarm(900) = 900 read(0, "c ve3nav-7\r",
1500) = 11 alarm(900) = 891
time([854939428]) = 854939428
open("/var/ax25/node/loggedin", O_RDWR) = 4 fstat(4,
{st_mode=S_IFREG|0644, st_size=448, ...}) = 0 mmap(0, 4096,
PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x400ba000
lseek(4, 0, SEEK_SET) = 0 write(4,
"\214\0\0\0\0\0\0\0kU\3652$W\3652"..., 160) = 160 close(4)
= 0 munmap(0x400ba000, 4096) = 0
socket(PF_??? (0x6), SOCK_SEQPACKET, , 0) = 4 bind(4, {sa_family=6,
sa_data="\0@\1\0\0\0\374a\10@\240Z\5\10"}, 60) = -1 EADDRNOTAVAIL
(Cannot assign requested address) write(0, "LinuxNode} connect_to:
bind: Can"..., 61) = 61 time([854939428]) =
854939428 getpid() = 140 write(5,
"<187>Feb 2 22:10:28 node[140]: "..., 82) = 82 close(4)
= 0 fcntl(0, F_SETFL, O_RDONLY) = 0
write(0, "\r", 1) = 1 time([854939428])
= 854939428 open("/var/ax25/node/loggedin", O_RDWR) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=448, ...}) = 0 mmap(0, 4096,
PROT_READ|PROT_WRITE, MAP_PRIVATE|0x20, 4294967295, 0) = 0x400ba000
lseek(4, 0, SEEK_SET) = 0 write(4,
"\214\0\0\0\0\0\0\0kU\3652$W\3652"..., 160) = 160 close(4)
= 0 munmap(0x400ba000, 4096) = 0
alarm(900) = 900 read(0,
On 3 Feb 97 at 8:20, Terry Dawson wrote:
> Barry Winch wrote:
>
> > However as soon as I try to connect to one of the entries in the
> > netrom list I get the following
> >
> > c ottawa
> > LinuxNode} connect_to: bind: Cannot assign requested address
> >
> > Can any one point me in the right direction to solve this please?
>
> Hello Barry,
> You haven't told us what version of ax25-utils you are running, nor
> kernel, nor whether you are trying to connect to the alias or the
> callsign, but I can suggest something for you to do:
>
> 1> Connect to the node.
> 2> Log on to the linux machine as root and run 'ps -aux | grep node'
> Take note of the PID (process id) of the node program listed. 3>
> From your root login run the command:
>
> strace -p <pid> 2>&1 | tee node.strace
>
> 4> from your node login, attempt a connection in the way that you
> had been.
> 5> back from your root login again hit ^c to stop the 'strace'
> and send me/us the file that was created called 'node.strace'
>
> The 'strace' program traces systems calls, its a little like the
> linux system equivalent of listen. It will show what arguments have
> been passed to the bind() system call so we can see what might be
> happening.
>
> regards
> Terry
>
_________________________________________________
Barry Winch
ve3nav/va3wi
Internet terhi.victor@logonet.com
BBS ve3nav@ve3nav.#eon.on.can.noam