• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef X25_KERNEL_H
20 #define X25_KERNEL_H
21 #include <linux/types.h>
22 #include <linux/socket.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define SIOCX25GSUBSCRIP (SIOCPROTOPRIVATE + 0)
25 #define SIOCX25SSUBSCRIP (SIOCPROTOPRIVATE + 1)
26 #define SIOCX25GFACILITIES (SIOCPROTOPRIVATE + 2)
27 #define SIOCX25SFACILITIES (SIOCPROTOPRIVATE + 3)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define SIOCX25GCALLUSERDATA (SIOCPROTOPRIVATE + 4)
30 #define SIOCX25SCALLUSERDATA (SIOCPROTOPRIVATE + 5)
31 #define SIOCX25GCAUSEDIAG (SIOCPROTOPRIVATE + 6)
32 #define SIOCX25SCUDMATCHLEN (SIOCPROTOPRIVATE + 7)
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define SIOCX25CALLACCPTAPPRV (SIOCPROTOPRIVATE + 8)
35 #define SIOCX25SENDCALLACCPT (SIOCPROTOPRIVATE + 9)
36 #define SIOCX25GDTEFACILITIES (SIOCPROTOPRIVATE + 10)
37 #define SIOCX25SDTEFACILITIES (SIOCPROTOPRIVATE + 11)
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define SIOCX25SCAUSEDIAG (SIOCPROTOPRIVATE + 12)
40 #define X25_QBITINCL 1
41 #define X25_PS16 4
42 #define X25_PS32 5
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define X25_PS64 6
45 #define X25_PS128 7
46 #define X25_PS256 8
47 #define X25_PS512 9
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define X25_PS1024 10
50 #define X25_PS2048 11
51 #define X25_PS4096 12
52 struct x25_address {
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  char x25_addr[16];
55 };
56 struct sockaddr_x25 {
57  __kernel_sa_family_t sx25_family;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  struct x25_address sx25_addr;
60 };
61 struct x25_subscrip_struct {
62  char device[200-sizeof(unsigned long)];
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  unsigned long global_facil_mask;
65  unsigned int extended;
66 };
67 #define X25_MASK_REVERSE 0x01
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define X25_MASK_THROUGHPUT 0x02
70 #define X25_MASK_PACKET_SIZE 0x04
71 #define X25_MASK_WINDOW_SIZE 0x08
72 #define X25_MASK_CALLING_AE 0x10
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define X25_MASK_CALLED_AE 0x20
75 struct x25_route_struct {
76  struct x25_address address;
77  unsigned int sigdigits;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  char device[200];
80 };
81 struct x25_facilities {
82  unsigned int winsize_in, winsize_out;
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84  unsigned int pacsize_in, pacsize_out;
85  unsigned int throughput;
86  unsigned int reverse;
87 };
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 struct x25_dte_facilities {
90  __u16 delay_cumul;
91  __u16 delay_target;
92  __u16 delay_max;
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  __u8 min_throughput;
95  __u8 expedited;
96  __u8 calling_len;
97  __u8 called_len;
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99  __u8 calling_ae[20];
100  __u8 called_ae[20];
101 };
102 struct x25_calluserdata {
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104  unsigned int cudlength;
105  unsigned char cuddata[128];
106 };
107 struct x25_causediag {
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  unsigned char cause;
110  unsigned char diagnostic;
111 };
112 struct x25_subaddr {
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114  unsigned int cudmatchlength;
115 };
116 #endif
117