1 #define PF_AX25 AF_AX25
2 #define AX25_MTU 256
3 #define AX25_MAX_DIGIS 8
4
5 typedef struct
6 {
7 char ax25_call[7];
8 }
9 ax25_address;
10
11 struct sockaddr_ax25
12 {
13 short sax25_family;
14 ax25_address sax25_call;
15 int sax25_ndigis;
16
17 };
18
19 #define sax25_uid sax25_ndigis
20
21 struct full_sockaddr_ax25
22 {
23 struct sockaddr_ax25 fsa_ax25;
24 ax25_address fsa_digipeater[AX25_MAX_DIGIS];
25 };
26
27 struct ax25_routes_struct
28 {
29 ax25_address port_addr;
30 ax25_address dest_addr;
31 unsigned char digi_count;
32 ax25_address digi_addr[AX25_MAX_DIGIS - 2];
33 };
34
35 #define AX25_WINDOW 1
36 #define AX25_T1 2
37 #define AX25_N2 3
38 #define AX25_T3 4
39 #define AX25_T2 5
40 #define AX25_BACKOFF 6
41 #define AX25_EXTSEQ 7
42 #define AX25_HDRINCL 8
43
44 #define SIOCAX25GETUID (SIOCPROTOPRIVATE)
45 #define SIOCAX25ADDUID (SIOCPROTOPRIVATE+1)
46 #define SIOCAX25DELUID (SIOCPROTOPRIVATE+2)
47 #define SIOCAX25NOUID (SIOCPROTOPRIVATE+3)
48 #define SIOCAX25DIGCTL (SIOCPROTOPRIVATE+4)
49 #define SIOCAX25GETPARMS (SIOCPROTOPRIVATE+5)
50 #define SIOCAX25SETPARMS (SIOCPROTOPRIVATE+6)
51
52 #define AX25_NOUID_DEFAULT 0
53 #define AX25_NOUID_BLOCK 1
54
55 #define AX25_VALUES_IPDEFMODE 0
56 #define AX25_VALUES_AXDEFMODE 1
57 #define AX25_VALUES_NETROM 2
58 #define AX25_VALUES_TEXT 3
59 #define AX25_VALUES_BACKOFF 4
60 #define AX25_VALUES_CONMODE 5
61 #define AX25_VALUES_WINDOW 6
62 #define AX25_VALUES_EWINDOW 7
63 #define AX25_VALUES_T1 8
64 #define AX25_VALUES_T2 9
65 #define AX25_VALUES_T3 10
66 #define AX25_VALUES_N2 11
67 #define AX25_MAX_VALUES 20
68
69 struct ax25_parms_struct
70 {
71 ax25_address port_addr;
72 unsigned short values[AX25_MAX_VALUES];
73 };