| 1 |
.TH AX25 4 "3 August 2017" Linux "Linux Programmer's Manual" |
| 2 |
.SH NAME |
| 3 |
AF_AX25 \- AX.25 amateur packet radio protocol family |
| 4 |
.SH DESCRIPTION |
| 5 |
.LP |
| 6 |
.B AX.25 |
| 7 |
is a protocol used extensively by radio amateurs. The Linux AX.25 protocol |
| 8 |
family permits access to these protocols via the standard networking |
| 9 |
.B socket |
| 10 |
metaphor. |
| 11 |
.LP |
| 12 |
The AX.25 protocol layer supports both connected mode and datagram (UI) |
| 13 |
frame modes. IP traffic may be stacked on top of AX.25 frames for IP |
| 14 |
transmission over the AX.25 medium. |
| 15 |
.LP |
| 16 |
The primary mode of operation is connected mode which is the mode used for a |
| 17 |
socket of type |
| 18 |
.B SOCK_SEQPACKET |
| 19 |
(stream sockets are not available in AX.25). |
| 20 |
This requires that the user ensures output data is suitably packetised, and |
| 21 |
that input data is read a packet at a time into a buffer of suitable size. |
| 22 |
The Linux AX.25 protocol layer can operate in standard AX.25 mode with three |
| 23 |
bit sequence numbers or in PE1CHL extended AX.25 mode which uses seven bit |
| 24 |
sequence numbers. The protocol passed to the socket is used for all outgoing |
| 25 |
frames. Passing 0 causes the normal AX.25 Text PID to be used. |
| 26 |
.LP |
| 27 |
.B SOCK_DGRAM |
| 28 |
gives access to AX.25 UI frames. For access to special frames (of |
| 29 |
any form) SOCK_RAW can be used. |
| 30 |
.LP |
| 31 |
AX.25 addresses consist of 6 |
| 32 |
.B ASCII |
| 33 |
characters and a number called the SSID. |
| 34 |
These are encoded into a sockaddr_ax25 structure which is provided to the |
| 35 |
relevant system calls. When digipeaters are included a callsign path can be |
| 36 |
much more complex. When this is the case a struct full_sockaddr_ax25 should |
| 37 |
be passed to the system calls. |
| 38 |
.LP |
| 39 |
AX.25 has some unusual properties. Notably in a multi-user system an AX.25 |
| 40 |
address is often associated with a user, and some users may not have such an |
| 41 |
association. a set of ioctl calls are provided to manage an association |
| 42 |
table, and in addition the superuser may use an arbitrary callsign by binding |
| 43 |
to the callsign desired and specifying the port to use as a first digipeated |
| 44 |
hop. |
| 45 |
.LP |
| 46 |
AX.25 supports the following socket options for |
| 47 |
.BR SOL_AX25 . |
| 48 |
.B AX25_T1 |
| 49 |
is the T1 timer in 1/10ths of a second, AX25_T2 is the T2 timer in 1/10ths of |
| 50 |
a second, |
| 51 |
.B AX25_T3 |
| 52 |
is the T3 timer. The window is settable with |
| 53 |
.BR AX25_WINDOW . |
| 54 |
.BR AX25_N2 , |
| 55 |
the retry counter is also configurable. There is no 'infinite retry' option |
| 56 |
supported however. The method of backoff for retries is configurable via the |
| 57 |
socket option |
| 58 |
.BR AX25_BACKOFF , |
| 59 |
a value of true indicates the use of exponential backoff and false simple |
| 60 |
linear backoff. The mode of a connection made be altered to be either |
| 61 |
standard AX.25 or extended AX.25 via |
| 62 |
.BR AX25_EXTSEQ . |
| 63 |
It is possible to have the complete AX.25 header returned to the application |
| 64 |
by setting |
| 65 |
.B AX25_HDRINCL |
| 66 |
to true, programs must be aware of the internal structure of AX.25 frames to |
| 67 |
use this option. Note that if AX.25 fragmentation is encountered, only the |
| 68 |
control information of the first frame is returned along with the defragmented |
| 69 |
data. |
| 70 |
.SH "SEE ALSO" |
| 71 |
.BR call (1), |
| 72 |
.BR socket (2), |
| 73 |
.BR setsockopt (2), |
| 74 |
.BR getsockopt (2), |
| 75 |
.BR axctl (8), |
| 76 |
.BR axports (5), |
| 77 |
.BR axparms (8), |
| 78 |
.BR packet (7), |
| 79 |
.BR kissattach (8). |
| 80 |
.LP |
| 81 |
.SH BUGS |
| 82 |
.LP |
| 83 |
Too numerous to list in full currently. |
| 84 |
.TP 3 |
| 85 |
\(bu |
| 86 |
Minor protocol violations exist. |
| 87 |
.SH AUTHOR |
| 88 |
.nf |
| 89 |
Alan Cox GW4PTS <[email protected]> |
| 90 |
.br |
| 91 |
Jonathan Naylor G4KLX <[email protected]> |
| 92 |
.fi |