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 _LINUX_DN_H |
| 20 | #define _LINUX_DN_H |
| 21 | #include <linux/types.h> |
| 22 | #define DNPROTO_NSP 2 |
| 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 24 | #define DNPROTO_ROU 3 |
| 25 | #define DNPROTO_NML 4 |
| 26 | #define DNPROTO_EVL 5 |
| 27 | #define DNPROTO_EVR 6 |
| 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 29 | #define DNPROTO_NSPT 7 |
| 30 | #define DN_ADDL 2 |
| 31 | #define DN_MAXADDL 2 |
| 32 | #define DN_MAXOPTL 16 |
| 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 34 | #define DN_MAXOBJL 16 |
| 35 | #define DN_MAXACCL 40 |
| 36 | #define DN_MAXALIASL 128 |
| 37 | #define DN_MAXNODEL 256 |
| 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 39 | #define DNBUFSIZE 65023 |
| 40 | #define SO_CONDATA 1 |
| 41 | #define SO_CONACCESS 2 |
| 42 | #define SO_PROXYUSR 3 |
| 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 44 | #define SO_LINKINFO 7 |
| 45 | #define DSO_CONDATA 1 |
| 46 | #define DSO_DISDATA 10 |
| 47 | #define DSO_CONACCESS 2 |
| 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 49 | #define DSO_ACCEPTMODE 4 |
| 50 | #define DSO_CONACCEPT 5 |
| 51 | #define DSO_CONREJECT 6 |
| 52 | #define DSO_LINKINFO 7 |
| 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 54 | #define DSO_STREAM 8 |
| 55 | #define DSO_SEQPACKET 9 |
| 56 | #define DSO_MAXWINDOW 11 |
| 57 | #define DSO_NODELAY 12 |
| 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 59 | #define DSO_CORK 13 |
| 60 | #define DSO_SERVICES 14 |
| 61 | #define DSO_INFO 15 |
| 62 | #define DSO_MAX 15 |
| 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 64 | #define LL_INACTIVE 0 |
| 65 | #define LL_CONNECTING 1 |
| 66 | #define LL_RUNNING 2 |
| 67 | #define LL_DISCONNECTING 3 |
| 68 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 69 | #define ACC_IMMED 0 |
| 70 | #define ACC_DEFER 1 |
| 71 | #define SDF_WILD 1 |
| 72 | #define SDF_PROXY 2 |
| 73 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 74 | #define SDF_UICPROXY 4 |
| 75 | struct dn_naddr { |
| 76 | __le16 a_len; |
| 77 | __u8 a_addr[DN_MAXADDL]; |
| 78 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 79 | }; |
| 80 | struct sockaddr_dn { |
| 81 | __u16 sdn_family; |
| 82 | __u8 sdn_flags; |
| 83 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 84 | __u8 sdn_objnum; |
| 85 | __le16 sdn_objnamel; |
| 86 | __u8 sdn_objname[DN_MAXOBJL]; |
| 87 | struct dn_naddr sdn_add; |
| 88 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 89 | }; |
| 90 | #define sdn_nodeaddrl sdn_add.a_len |
| 91 | #define sdn_nodeaddr sdn_add.a_addr |
| 92 | struct optdata_dn { |
| 93 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 94 | __le16 opt_status; |
| 95 | #define opt_sts opt_status |
| 96 | __le16 opt_optl; |
| 97 | __u8 opt_data[16]; |
| 98 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 99 | }; |
| 100 | struct accessdata_dn { |
| 101 | __u8 acc_accl; |
| 102 | __u8 acc_acc[DN_MAXACCL]; |
| 103 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 104 | __u8 acc_passl; |
| 105 | __u8 acc_pass[DN_MAXACCL]; |
| 106 | __u8 acc_userl; |
| 107 | __u8 acc_user[DN_MAXACCL]; |
| 108 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 109 | }; |
| 110 | struct linkinfo_dn { |
| 111 | __u16 idn_segsize; |
| 112 | __u8 idn_linkstate; |
| 113 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 114 | }; |
| 115 | union etheraddress { |
| 116 | __u8 dne_addr[6]; |
| 117 | struct { |
| 118 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 119 | __u8 dne_hiord[4]; |
| 120 | __u8 dne_nodeaddr[2]; |
| 121 | } dne_remote; |
| 122 | }; |
| 123 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 124 | struct dn_addr { |
| 125 | __le16 dna_family; |
| 126 | union etheraddress dna_netaddr; |
| 127 | }; |
| 128 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 129 | #define DECNET_IOCTL_BASE 0x89 |
| 130 | #define SIOCSNETADDR _IOW(DECNET_IOCTL_BASE, 0xe0, struct dn_naddr) |
| 131 | #define SIOCGNETADDR _IOR(DECNET_IOCTL_BASE, 0xe1, struct dn_naddr) |
| 132 | #define OSIOCSNETADDR _IOW(DECNET_IOCTL_BASE, 0xe0, int) |
| 133 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
| 134 | #define OSIOCGNETADDR _IOR(DECNET_IOCTL_BASE, 0xe1, int) |
| 135 | #endif |