Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 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> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define SIOCX25GSUBSCRIP (SIOCPROTOPRIVATE + 0) |
| 24 | #define SIOCX25SSUBSCRIP (SIOCPROTOPRIVATE + 1) |
| 25 | #define SIOCX25GFACILITIES (SIOCPROTOPRIVATE + 2) |
| 26 | #define SIOCX25SFACILITIES (SIOCPROTOPRIVATE + 3) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define SIOCX25GCALLUSERDATA (SIOCPROTOPRIVATE + 4) |
| 28 | #define SIOCX25SCALLUSERDATA (SIOCPROTOPRIVATE + 5) |
| 29 | #define SIOCX25GCAUSEDIAG (SIOCPROTOPRIVATE + 6) |
| 30 | #define SIOCX25SCUDMATCHLEN (SIOCPROTOPRIVATE + 7) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | #define SIOCX25CALLACCPTAPPRV (SIOCPROTOPRIVATE + 8) |
| 32 | #define SIOCX25SENDCALLACCPT (SIOCPROTOPRIVATE + 9) |
| 33 | #define SIOCX25GDTEFACILITIES (SIOCPROTOPRIVATE + 10) |
| 34 | #define SIOCX25SDTEFACILITIES (SIOCPROTOPRIVATE + 11) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | #define SIOCX25SCAUSEDIAG (SIOCPROTOPRIVATE + 12) |
| 36 | #define X25_QBITINCL 1 |
| 37 | #define X25_PS16 4 |
| 38 | #define X25_PS32 5 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 39 | #define X25_PS64 6 |
| 40 | #define X25_PS128 7 |
| 41 | #define X25_PS256 8 |
| 42 | #define X25_PS512 9 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #define X25_PS1024 10 |
| 44 | #define X25_PS2048 11 |
| 45 | #define X25_PS4096 12 |
| 46 | struct x25_address { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 47 | char x25_addr[16]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 48 | }; |
| 49 | struct sockaddr_x25 { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 50 | __kernel_sa_family_t sx25_family; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 51 | struct x25_address sx25_addr; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 52 | }; |
| 53 | struct x25_subscrip_struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 54 | char device[200 - sizeof(unsigned long)]; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 55 | unsigned long global_facil_mask; |
| 56 | unsigned int extended; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 57 | }; |
| 58 | #define X25_MASK_REVERSE 0x01 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 59 | #define X25_MASK_THROUGHPUT 0x02 |
| 60 | #define X25_MASK_PACKET_SIZE 0x04 |
| 61 | #define X25_MASK_WINDOW_SIZE 0x08 |
| 62 | #define X25_MASK_CALLING_AE 0x10 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 63 | #define X25_MASK_CALLED_AE 0x20 |
| 64 | struct x25_route_struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 65 | struct x25_address address; |
| 66 | unsigned int sigdigits; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 67 | char device[200]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 68 | }; |
| 69 | struct x25_facilities { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 70 | unsigned int winsize_in, winsize_out; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 71 | unsigned int pacsize_in, pacsize_out; |
| 72 | unsigned int throughput; |
| 73 | unsigned int reverse; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 74 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 75 | struct x25_dte_facilities { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 76 | __u16 delay_cumul; |
| 77 | __u16 delay_target; |
| 78 | __u16 delay_max; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 79 | __u8 min_throughput; |
| 80 | __u8 expedited; |
| 81 | __u8 calling_len; |
| 82 | __u8 called_len; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 83 | __u8 calling_ae[20]; |
| 84 | __u8 called_ae[20]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 85 | }; |
| 86 | struct x25_calluserdata { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 87 | unsigned int cudlength; |
| 88 | unsigned char cuddata[128]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 89 | }; |
| 90 | struct x25_causediag { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 91 | unsigned char cause; |
| 92 | unsigned char diagnostic; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 93 | }; |
| 94 | struct x25_subaddr { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 95 | unsigned int cudmatchlength; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 96 | }; |
| 97 | #endif |