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 ROSE_KERNEL_H |
| 20 | #define ROSE_KERNEL_H |
| 21 | #include <linux/socket.h> |
| 22 | #include <linux/ax25.h> |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 24 | #define ROSE_MTU 251 |
| 25 | #define ROSE_MAX_DIGIS 6 |
| 26 | #define ROSE_DEFER 1 |
| 27 | #define ROSE_T1 2 |
| 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 29 | #define ROSE_T2 3 |
| 30 | #define ROSE_T3 4 |
| 31 | #define ROSE_IDLE 5 |
| 32 | #define ROSE_QBITINCL 6 |
| 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 34 | #define ROSE_HOLDBACK 7 |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 35 | #define SIOCRSGCAUSE (SIOCPROTOPRIVATE + 0) |
| 36 | #define SIOCRSSCAUSE (SIOCPROTOPRIVATE + 1) |
| 37 | #define SIOCRSL2CALL (SIOCPROTOPRIVATE + 2) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | #define SIOCRSSL2CALL (SIOCPROTOPRIVATE + 2) |
| 40 | #define SIOCRSACCEPT (SIOCPROTOPRIVATE + 3) |
| 41 | #define SIOCRSCLRRT (SIOCPROTOPRIVATE + 4) |
| 42 | #define SIOCRSGL2CALL (SIOCPROTOPRIVATE + 5) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 44 | #define SIOCRSGFACILITIES (SIOCPROTOPRIVATE + 6) |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 45 | #define ROSE_DTE_ORIGINATED 0x00 |
| 46 | #define ROSE_NUMBER_BUSY 0x01 |
| 47 | #define ROSE_INVALID_FACILITY 0x03 |
| 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 49 | #define ROSE_NETWORK_CONGESTION 0x05 |
| 50 | #define ROSE_OUT_OF_ORDER 0x09 |
| 51 | #define ROSE_ACCESS_BARRED 0x0B |
| 52 | #define ROSE_NOT_OBTAINABLE 0x0D |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | #define ROSE_REMOTE_PROCEDURE 0x11 |
| 55 | #define ROSE_LOCAL_PROCEDURE 0x13 |
| 56 | #define ROSE_SHIP_ABSENT 0x39 |
| 57 | typedef struct { |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 59 | char rose_addr[5]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 60 | } rose_address; |
| 61 | struct sockaddr_rose { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 62 | __kernel_sa_family_t srose_family; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 64 | rose_address srose_addr; |
| 65 | ax25_address srose_call; |
| 66 | int srose_ndigis; |
| 67 | ax25_address srose_digi; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 69 | }; |
| 70 | struct full_sockaddr_rose { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 71 | __kernel_sa_family_t srose_family; |
| 72 | rose_address srose_addr; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 74 | ax25_address srose_call; |
| 75 | unsigned int srose_ndigis; |
| 76 | ax25_address srose_digis[ROSE_MAX_DIGIS]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 77 | }; |
| 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 79 | struct rose_route_struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 80 | rose_address address; |
| 81 | unsigned short mask; |
| 82 | ax25_address neighbour; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 84 | char device[16]; |
| 85 | unsigned char ndigis; |
| 86 | ax25_address digipeaters[AX25_MAX_DIGIS]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 87 | }; |
| 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 89 | struct rose_cause_struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 90 | unsigned char cause; |
| 91 | unsigned char diagnostic; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 92 | }; |
| 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 94 | struct rose_facilities_struct { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 95 | rose_address source_addr, dest_addr; |
| 96 | ax25_address source_call, dest_call; |
| 97 | unsigned char source_ndigis, dest_ndigis; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 99 | ax25_address source_digis[ROSE_MAX_DIGIS]; |
| 100 | ax25_address dest_digis[ROSE_MAX_DIGIS]; |
| 101 | unsigned int rand; |
| 102 | rose_address fail_addr; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 104 | ax25_address fail_call; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 105 | }; |
| 106 | #endif |