blob: 013a03fca563601d0b9f1125e59509ab75751b95 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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
Christopher Ferris38062f92014-07-09 15:33:25 -070021#include <linux/ioctl.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070022#include <linux/types.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070024#include <linux/if_ether.h>
25#define DNPROTO_NSP 2
Ben Cheng655a7c02013-10-16 16:09:24 -070026#define DNPROTO_ROU 3
27#define DNPROTO_NML 4
Christopher Ferris38062f92014-07-09 15:33:25 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070029#define DNPROTO_EVL 5
30#define DNPROTO_EVR 6
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define DNPROTO_NSPT 7
32#define DN_ADDL 2
Christopher Ferris38062f92014-07-09 15:33:25 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070034#define DN_MAXADDL 2
35#define DN_MAXOPTL 16
Ben Cheng655a7c02013-10-16 16:09:24 -070036#define DN_MAXOBJL 16
37#define DN_MAXACCL 40
Christopher Ferris38062f92014-07-09 15:33:25 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define DN_MAXALIASL 128
40#define DN_MAXNODEL 256
Ben Cheng655a7c02013-10-16 16:09:24 -070041#define DNBUFSIZE 65023
42#define SO_CONDATA 1
Christopher Ferris38062f92014-07-09 15:33:25 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070044#define SO_CONACCESS 2
45#define SO_PROXYUSR 3
Ben Cheng655a7c02013-10-16 16:09:24 -070046#define SO_LINKINFO 7
47#define DSO_CONDATA 1
Christopher Ferris38062f92014-07-09 15:33:25 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070049#define DSO_DISDATA 10
50#define DSO_CONACCESS 2
Ben Cheng655a7c02013-10-16 16:09:24 -070051#define DSO_ACCEPTMODE 4
52#define DSO_CONACCEPT 5
Christopher Ferris38062f92014-07-09 15:33:25 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070054#define DSO_CONREJECT 6
55#define DSO_LINKINFO 7
Ben Cheng655a7c02013-10-16 16:09:24 -070056#define DSO_STREAM 8
57#define DSO_SEQPACKET 9
Christopher Ferris38062f92014-07-09 15:33:25 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070059#define DSO_MAXWINDOW 11
60#define DSO_NODELAY 12
Ben Cheng655a7c02013-10-16 16:09:24 -070061#define DSO_CORK 13
62#define DSO_SERVICES 14
Christopher Ferris38062f92014-07-09 15:33:25 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070064#define DSO_INFO 15
65#define DSO_MAX 15
Ben Cheng655a7c02013-10-16 16:09:24 -070066#define LL_INACTIVE 0
67#define LL_CONNECTING 1
Christopher Ferris38062f92014-07-09 15:33:25 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070069#define LL_RUNNING 2
70#define LL_DISCONNECTING 3
Ben Cheng655a7c02013-10-16 16:09:24 -070071#define ACC_IMMED 0
72#define ACC_DEFER 1
Christopher Ferris38062f92014-07-09 15:33:25 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074#define SDF_WILD 1
75#define SDF_PROXY 2
Ben Cheng655a7c02013-10-16 16:09:24 -070076#define SDF_UICPROXY 4
77struct dn_naddr {
Christopher Ferris38062f92014-07-09 15:33:25 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079 __le16 a_len;
80 __u8 a_addr[DN_MAXADDL];
Ben Cheng655a7c02013-10-16 16:09:24 -070081};
82struct sockaddr_dn {
Christopher Ferris38062f92014-07-09 15:33:25 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070084 __u16 sdn_family;
85 __u8 sdn_flags;
Ben Cheng655a7c02013-10-16 16:09:24 -070086 __u8 sdn_objnum;
87 __le16 sdn_objnamel;
Christopher Ferris38062f92014-07-09 15:33:25 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089 __u8 sdn_objname[DN_MAXOBJL];
90 struct dn_naddr sdn_add;
Ben Cheng655a7c02013-10-16 16:09:24 -070091};
92#define sdn_nodeaddrl sdn_add.a_len
Christopher Ferris38062f92014-07-09 15:33:25 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070094#define sdn_nodeaddr sdn_add.a_addr
95struct optdata_dn {
Ben Cheng655a7c02013-10-16 16:09:24 -070096 __le16 opt_status;
97#define opt_sts opt_status
Christopher Ferris38062f92014-07-09 15:33:25 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099 __le16 opt_optl;
100 __u8 opt_data[16];
Ben Cheng655a7c02013-10-16 16:09:24 -0700101};
102struct accessdata_dn {
Christopher Ferris38062f92014-07-09 15:33:25 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700104 __u8 acc_accl;
105 __u8 acc_acc[DN_MAXACCL];
Ben Cheng655a7c02013-10-16 16:09:24 -0700106 __u8 acc_passl;
107 __u8 acc_pass[DN_MAXACCL];
Christopher Ferris38062f92014-07-09 15:33:25 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700109 __u8 acc_userl;
110 __u8 acc_user[DN_MAXACCL];
Ben Cheng655a7c02013-10-16 16:09:24 -0700111};
112struct linkinfo_dn {
Christopher Ferris38062f92014-07-09 15:33:25 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700114 __u16 idn_segsize;
115 __u8 idn_linkstate;
Ben Cheng655a7c02013-10-16 16:09:24 -0700116};
117union etheraddress {
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700119 __u8 dne_addr[ETH_ALEN];
120 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -0700121 __u8 dne_hiord[4];
122 __u8 dne_nodeaddr[2];
Christopher Ferris38062f92014-07-09 15:33:25 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700124 } dne_remote;
125};
Ben Cheng655a7c02013-10-16 16:09:24 -0700126struct dn_addr {
127 __le16 dna_family;
Christopher Ferris38062f92014-07-09 15:33:25 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700129 union etheraddress dna_netaddr;
130};
Ben Cheng655a7c02013-10-16 16:09:24 -0700131#define DECNET_IOCTL_BASE 0x89
132#define SIOCSNETADDR _IOW(DECNET_IOCTL_BASE, 0xe0, struct dn_naddr)
Christopher Ferris38062f92014-07-09 15:33:25 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134#define SIOCGNETADDR _IOR(DECNET_IOCTL_BASE, 0xe1, struct dn_naddr)
135#define OSIOCSNETADDR _IOW(DECNET_IOCTL_BASE, 0xe0, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700136#define OSIOCGNETADDR _IOR(DECNET_IOCTL_BASE, 0xe1, int)
137#endif
Christopher Ferris38062f92014-07-09 15:33:25 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */