2 * These are the public elements of the Linux kernel X.25 implementation.
5 * mar/20/00 Daniela Squassoni Disabling/enabling of facilities
12 #define SIOCX25GSUBSCRIP (SIOCPROTOPRIVATE + 0)
13 #define SIOCX25SSUBSCRIP (SIOCPROTOPRIVATE + 1)
14 #define SIOCX25GFACILITIES (SIOCPROTOPRIVATE + 2)
15 #define SIOCX25SFACILITIES (SIOCPROTOPRIVATE + 3)
16 #define SIOCX25GCALLUSERDATA (SIOCPROTOPRIVATE + 4)
17 #define SIOCX25SCALLUSERDATA (SIOCPROTOPRIVATE + 5)
18 #define SIOCX25GCAUSEDIAG (SIOCPROTOPRIVATE + 6)
21 * Values for {get,set}sockopt.
23 #define X25_QBITINCL 1
26 * X.25 Packet Size values.
39 * An X.121 address, it is held as ASCII text, null terminated, up to 15
40 * digits and a null terminator.
47 * Linux X.25 Address structure, used for bind, and connect mostly.
50 sa_family_t sx25_family; /* Must be AF_X25 */
51 struct x25_address sx25_addr; /* X.121 Address */
55 * DTE/DCE subscription options.
57 * As this is missing lots of options, user should expect major
58 * changes of this structure in 2.5.x which might break compatibilty.
59 * The somewhat ugly dimension 200-sizeof() is needed to maintain
60 * backward compatibility.
62 struct x25_subscrip_struct {
63 char device[200-sizeof(unsigned long)];
64 unsigned long global_facil_mask; /* 0 to disable negotiation */
65 unsigned int extended;
68 /* values for above global_facil_mask */
70 #define X25_MASK_REVERSE 0x01
71 #define X25_MASK_THROUGHPUT 0x02
72 #define X25_MASK_PACKET_SIZE 0x04
73 #define X25_MASK_WINDOW_SIZE 0x08
78 * Routing table control structure.
80 struct x25_route_struct {
81 struct x25_address address;
82 unsigned int sigdigits;
87 * Facilities structure.
89 struct x25_facilities {
90 unsigned int winsize_in, winsize_out;
91 unsigned int pacsize_in, pacsize_out;
92 unsigned int throughput;
97 * Call User Data structure.
99 struct x25_calluserdata {
100 unsigned int cudlength;
101 unsigned char cuddata[128];
105 * Call clearing Cause and Diagnostic structure.
107 struct x25_causediag {
109 unsigned char diagnostic;