1 #define PF_AX25 AF_AX25
2 #define AX25_MTU 256
3 #define AX25_MAX_DIGIS 6
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];
33 };
34
35 struct ax25_route_opt_struct
36 {
37 ax25_address port_addr;
38 ax25_address dest_addr;
39 int cmd;
40 int arg;
41 };
42
43 struct ax25_ctl_struct
44 {
45 ax25_address port_addr;
46 ax25_address source_addr;
47 ax25_address dest_addr;
48 unsigned int cmd;
49 unsigned long arg;
50 };
51
52 struct ax25_bpqaddr_struct
53 {
54 char dev[16];
55 ax25_address addr;
56 };
57
58 #define AX25_WINDOW 1
59 #define AX25_T1 2
60 #define AX25_N2 3
61 #define AX25_T3 4
62 #define AX25_T2 5
63 #define AX25_BACKOFF 6
64 #define AX25_EXTSEQ 7
65 #define AX25_HDRINCL 8
66 #define AX25_IDLE 9
67 #define AX25_PACLEN 10
68 #define AX25_IPMAXQUEUE 11
69
70 #define AX25_KILL 99
71
72 #define SIOCAX25GETUID (SIOCPROTOPRIVATE)
73 #define SIOCAX25ADDUID (SIOCPROTOPRIVATE+1)
74 #define SIOCAX25DELUID (SIOCPROTOPRIVATE+2)
75 #define SIOCAX25NOUID (SIOCPROTOPRIVATE+3)
76 #define SIOCAX25BPQADDR (SIOCPROTOPRIVATE+4)
77 #define SIOCAX25GETPARMS (SIOCPROTOPRIVATE+5)
78 #define SIOCAX25SETPARMS (SIOCPROTOPRIVATE+6)
79 #define SIOCAX25OPTRT (SIOCPROTOPRIVATE+7)
80 #define SIOCAX25CTLCON (SIOCPROTOPRIVATE+8)
81
82 #define AX25_SET_RT_PERMANENT 1
83 #define AX25_SET_RT_IPMODE 2
84
85 #define AX25_RT_DYNAMIC 0
86 #define AX25_RT_PERMANENT 1
87
88 #define AX25_RT_IPMODE_DEFAULT ' '
89 #define AX25_RT_IPMODE_DATAGRAM 'D'
90 #define AX25_RT_IPMODE_VC 'V'
91
92 #define AX25_NOUID_DEFAULT 0
93 #define AX25_NOUID_BLOCK 1
94
95 #define AX25_DIGI_INBAND 0x01
96 #define AX25_DIGI_XBAND 0x02
97
98 #define AX25_VALUES_IPDEFMODE 0
99 #define AX25_VALUES_AXDEFMODE 1
100 #define AX25_VALUES_NETROM 2
101 #define AX25_VALUES_TEXT 3
102 #define AX25_VALUES_BACKOFF 4
103 #define AX25_VALUES_CONMODE 5
104 #define AX25_VALUES_WINDOW 6
105 #define AX25_VALUES_EWINDOW 7
106 #define AX25_VALUES_T1 8
107 #define AX25_VALUES_T2 9
108 #define AX25_VALUES_T3 10
109 #define AX25_VALUES_N2 11
110 #define AX25_VALUES_DIGI 12
111 #define AX25_VALUES_IDLE 13
112 #define AX25_VALUES_PACLEN 14
113 #define AX25_VALUES_IPMAXQUEUE 15
114 #define AX25_MAX_VALUES 20
115
116 struct ax25_parms_struct
117 {
118 ax25_address port_addr;
119 unsigned short values[AX25_MAX_VALUES];
120 };