From: Bent Bagger (terhi.victor@logonet.com)
Date: Sat Sep 14 2002 - 21:26:58 EEST
After I upgraded my Linux to SuSE 8.0, which uses kernel version 2.4.18, I
get this error message from pb in the system log:
<date> <host> kernel: ax25_sendmsg(): pb uses obsolete socket sructure
I have traced the source to the piece of program that sends fill requests
to the satellite. The socket creation uses this call:
s_directory = socket (PF_AX25, SOCKRAW, PID_DIRECTORY);
bind (s_directory, (struct sockaddr *)&src, sizeof(src));
where PID_DIRECTORY = 0xBD.
and src is a struct sockaddr_ax25 with my call in it.
The nice thing about this construct is that I only have to supply the info
part of the AX.25 frame, the other fields (address, control, and PID) are
nicely filled in when I use this call to send a buffer:
sendto (s_directory, buffer, sizeof(buffer), 0, (struct sockaddr *)&dest,
sizeof(dest));
Here dest is a struct simillar to src holding the call of the satellite.
My problem is that I cannot find a replacement structure that does the same
job as the one I use. I have tried using PF_PACKET instead of PF_AX25 but
that gave a bind error.
I have searched the linux-hams archive at hes.iki.fi but not found any help
there.
I would appreciate very much if anybody othe there could give me some advise.
-- Bent Bagger, OZ6BL Birkerød Danmark__________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ - To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to mntfhm.ovvhmoqiq@mailit.tunk.net More majordomo info at http://vger.kernel.org/majordomo-info.html
This archive was generated by hypermail 2b30 : Sat Sep 14 2002 - 21:26:43 EEST