blob: 83907c20e71ea23ef0091c84be0765b46df913da [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 AX25_KERNEL_H
20#define AX25_KERNEL_H
21#include <linux/socket.h>
22#define AX25_MTU 256
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define AX25_MAX_DIGIS 8
25#define AX25_WINDOW 1
26#define AX25_T1 2
27#define AX25_N2 3
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define AX25_T3 4
30#define AX25_T2 5
31#define AX25_BACKOFF 6
32#define AX25_EXTSEQ 7
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define AX25_PIDINCL 8
35#define AX25_IDLE 9
36#define AX25_PACLEN 10
37#define AX25_IAMDIGI 12
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define AX25_KILL 99
Tao Baod7db5942015-01-28 10:07:51 -080040#define SIOCAX25GETUID (SIOCPROTOPRIVATE + 0)
41#define SIOCAX25ADDUID (SIOCPROTOPRIVATE + 1)
42#define SIOCAX25DELUID (SIOCPROTOPRIVATE + 2)
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044#define SIOCAX25NOUID (SIOCPROTOPRIVATE + 3)
45#define SIOCAX25OPTRT (SIOCPROTOPRIVATE + 7)
46#define SIOCAX25CTLCON (SIOCPROTOPRIVATE + 8)
47#define SIOCAX25GETINFOOLD (SIOCPROTOPRIVATE + 9)
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049#define SIOCAX25ADDFWD (SIOCPROTOPRIVATE + 10)
50#define SIOCAX25DELFWD (SIOCPROTOPRIVATE + 11)
51#define SIOCAX25DEVCTL (SIOCPROTOPRIVATE + 12)
52#define SIOCAX25GETINFO (SIOCPROTOPRIVATE + 13)
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54#define AX25_SET_RT_IPMODE 2
55#define AX25_NOUID_DEFAULT 0
56#define AX25_NOUID_BLOCK 1
57typedef struct {
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 char ax25_call[7];
Ben Cheng655a7c02013-10-16 16:09:24 -070060} ax25_address;
61struct sockaddr_ax25 {
Tao Baod7db5942015-01-28 10:07:51 -080062 __kernel_sa_family_t sax25_family;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 ax25_address sax25_call;
65 int sax25_ndigis;
Ben Cheng655a7c02013-10-16 16:09:24 -070066};
67#define sax25_uid sax25_ndigis
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69struct full_sockaddr_ax25 {
Tao Baod7db5942015-01-28 10:07:51 -080070 struct sockaddr_ax25 fsa_ax25;
71 ax25_address fsa_digipeater[AX25_MAX_DIGIS];
Ben Cheng655a7c02013-10-16 16:09:24 -070072};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74struct ax25_routes_struct {
Tao Baod7db5942015-01-28 10:07:51 -080075 ax25_address port_addr;
76 ax25_address dest_addr;
77 unsigned char digi_count;
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 ax25_address digi_addr[AX25_MAX_DIGIS];
Ben Cheng655a7c02013-10-16 16:09:24 -070080};
81struct ax25_route_opt_struct {
Tao Baod7db5942015-01-28 10:07:51 -080082 ax25_address port_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 ax25_address dest_addr;
85 int cmd;
86 int arg;
Ben Cheng655a7c02013-10-16 16:09:24 -070087};
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89struct ax25_ctl_struct {
Tao Baod7db5942015-01-28 10:07:51 -080090 ax25_address port_addr;
91 ax25_address source_addr;
92 ax25_address dest_addr;
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 unsigned int cmd;
95 unsigned long arg;
96 unsigned char digi_count;
97 ax25_address digi_addr[AX25_MAX_DIGIS];
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99};
100struct ax25_info_struct_deprecated {
Tao Baod7db5942015-01-28 10:07:51 -0800101 unsigned int n2, n2count;
102 unsigned int t1, t1timer;
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 unsigned int t2, t2timer;
105 unsigned int t3, t3timer;
106 unsigned int idle, idletimer;
107 unsigned int state;
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 unsigned int rcv_q, snd_q;
Ben Cheng655a7c02013-10-16 16:09:24 -0700110};
111struct ax25_info_struct {
Tao Baod7db5942015-01-28 10:07:51 -0800112 unsigned int n2, n2count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 unsigned int t1, t1timer;
115 unsigned int t2, t2timer;
116 unsigned int t3, t3timer;
117 unsigned int idle, idletimer;
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 unsigned int state;
120 unsigned int rcv_q, snd_q;
121 unsigned int vs, vr, va, vs_max;
122 unsigned int paclen;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 unsigned int window;
Ben Cheng655a7c02013-10-16 16:09:24 -0700125};
126struct ax25_fwd_struct {
Tao Baod7db5942015-01-28 10:07:51 -0800127 ax25_address port_from;
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 ax25_address port_to;
Ben Cheng655a7c02013-10-16 16:09:24 -0700130};
131#endif