Re: Help needed with solving an axcall-related problem
Hello Karsten,
> Test connected mode
> ===================
> $ LANG=en axcall cb 13CB42
> GW4PTS AX.25 Connect v1.11
> AX25_WINDOW: Invalid argument
> $ LANG=en axcall cb 13CB42-1
> GW4PTS AX.25 Connect v1.11
> AX25_WINDOW: Invalid argument
I never used axcall but by reading the code I think that you should
use the -w argument, valid values are 1..63 or 1..7 depending on the
value of -m that can be either s or e
This is because there is only one place where the "AX25_WINDOW" error
message is printed:
if (setsockopt
(fd, SOL_AX25, AX25_WINDOW, &window,
sizeof(window)) == -1) {
perror("AX25_WINDOW");
close(fd);
fd = -1;
return -1;
}
https://salsa.debian.org/debian-hamradio-team/ax25-apps/-/blob/master/call/call.c#L677
and man setsockopt says:
EINVAL optlen invalid in setsockopt(). In some cases this error can
also occur for an invalid value in optval
and optval gets the value of the varaible window is zero by default
--
73 de IU5HKX Daniele
Reply to: