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