2 * These are the public elements of the Linux kernel Rose implementation.
3 * For kernel AX.25 see the file ax25.h. This file requires ax25.h for the
4 * definition of the ax25_address structure.
10 #include <linux/ax25.h>
14 #define ROSE_MAX_DIGIS 6
21 #define ROSE_QBITINCL 6
22 #define ROSE_HOLDBACK 7
24 #define SIOCRSGCAUSE (SIOCPROTOPRIVATE+0)
25 #define SIOCRSSCAUSE (SIOCPROTOPRIVATE+1)
26 #define SIOCRSL2CALL (SIOCPROTOPRIVATE+2)
27 #define SIOCRSSL2CALL (SIOCPROTOPRIVATE+2)
28 #define SIOCRSACCEPT (SIOCPROTOPRIVATE+3)
29 #define SIOCRSCLRRT (SIOCPROTOPRIVATE+4)
30 #define SIOCRSGL2CALL (SIOCPROTOPRIVATE+5)
31 #define SIOCRSGFACILITIES (SIOCPROTOPRIVATE+6)
33 #define ROSE_DTE_ORIGINATED 0x00
34 #define ROSE_NUMBER_BUSY 0x01
35 #define ROSE_INVALID_FACILITY 0x03
36 #define ROSE_NETWORK_CONGESTION 0x05
37 #define ROSE_OUT_OF_ORDER 0x09
38 #define ROSE_ACCESS_BARRED 0x0B
39 #define ROSE_NOT_OBTAINABLE 0x0D
40 #define ROSE_REMOTE_PROCEDURE 0x11
41 #define ROSE_LOCAL_PROCEDURE 0x13
42 #define ROSE_SHIP_ABSENT 0x39
48 struct sockaddr_rose {
49 sa_family_t srose_family;
50 rose_address srose_addr;
51 ax25_address srose_call;
53 ax25_address srose_digi;
56 struct full_sockaddr_rose {
57 sa_family_t srose_family;
58 rose_address srose_addr;
59 ax25_address srose_call;
60 unsigned int srose_ndigis;
61 ax25_address srose_digis[ROSE_MAX_DIGIS];
64 struct rose_route_struct {
67 ax25_address neighbour;
70 ax25_address digipeaters[AX25_MAX_DIGIS];
73 struct rose_cause_struct {
75 unsigned char diagnostic;
78 struct rose_facilities_struct {
79 rose_address source_addr, dest_addr;
80 ax25_address source_call, dest_call;
81 unsigned char source_ndigis, dest_ndigis;
82 ax25_address source_digis[ROSE_MAX_DIGIS];
83 ax25_address dest_digis[ROSE_MAX_DIGIS];
85 rose_address fail_addr;
86 ax25_address fail_call;