• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef X25_KERNEL_H
8 #define X25_KERNEL_H
9 #include <linux/types.h>
10 #include <linux/socket.h>
11 #define SIOCX25GSUBSCRIP (SIOCPROTOPRIVATE + 0)
12 #define SIOCX25SSUBSCRIP (SIOCPROTOPRIVATE + 1)
13 #define SIOCX25GFACILITIES (SIOCPROTOPRIVATE + 2)
14 #define SIOCX25SFACILITIES (SIOCPROTOPRIVATE + 3)
15 #define SIOCX25GCALLUSERDATA (SIOCPROTOPRIVATE + 4)
16 #define SIOCX25SCALLUSERDATA (SIOCPROTOPRIVATE + 5)
17 #define SIOCX25GCAUSEDIAG (SIOCPROTOPRIVATE + 6)
18 #define SIOCX25SCUDMATCHLEN (SIOCPROTOPRIVATE + 7)
19 #define SIOCX25CALLACCPTAPPRV (SIOCPROTOPRIVATE + 8)
20 #define SIOCX25SENDCALLACCPT (SIOCPROTOPRIVATE + 9)
21 #define SIOCX25GDTEFACILITIES (SIOCPROTOPRIVATE + 10)
22 #define SIOCX25SDTEFACILITIES (SIOCPROTOPRIVATE + 11)
23 #define SIOCX25SCAUSEDIAG (SIOCPROTOPRIVATE + 12)
24 #define X25_QBITINCL 1
25 #define X25_PS16 4
26 #define X25_PS32 5
27 #define X25_PS64 6
28 #define X25_PS128 7
29 #define X25_PS256 8
30 #define X25_PS512 9
31 #define X25_PS1024 10
32 #define X25_PS2048 11
33 #define X25_PS4096 12
34 struct x25_address {
35   char x25_addr[16];
36 };
37 struct sockaddr_x25 {
38   __kernel_sa_family_t sx25_family;
39   struct x25_address sx25_addr;
40 };
41 struct x25_subscrip_struct {
42   char device[200 - sizeof(unsigned long)];
43   unsigned long global_facil_mask;
44   unsigned int extended;
45 };
46 #define X25_MASK_REVERSE 0x01
47 #define X25_MASK_THROUGHPUT 0x02
48 #define X25_MASK_PACKET_SIZE 0x04
49 #define X25_MASK_WINDOW_SIZE 0x08
50 #define X25_MASK_CALLING_AE 0x10
51 #define X25_MASK_CALLED_AE 0x20
52 struct x25_route_struct {
53   struct x25_address address;
54   unsigned int sigdigits;
55   char device[200];
56 };
57 struct x25_facilities {
58   unsigned int winsize_in, winsize_out;
59   unsigned int pacsize_in, pacsize_out;
60   unsigned int throughput;
61   unsigned int reverse;
62 };
63 struct x25_dte_facilities {
64   __u16 delay_cumul;
65   __u16 delay_target;
66   __u16 delay_max;
67   __u8 min_throughput;
68   __u8 expedited;
69   __u8 calling_len;
70   __u8 called_len;
71   __u8 calling_ae[20];
72   __u8 called_ae[20];
73 };
74 struct x25_calluserdata {
75   unsigned int cudlength;
76   unsigned char cuddata[128];
77 };
78 struct x25_causediag {
79   unsigned char cause;
80   unsigned char diagnostic;
81 };
82 struct x25_subaddr {
83   unsigned int cudmatchlength;
84 };
85 #endif
86