1 /****************************************************************************
2 ****************************************************************************
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.
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
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
17 ****************************************************************************
18 ****************************************************************************/
21 #include <linux/socket.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define AX25_MAX_DIGIS 8
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
31 #define AX25_BACKOFF 6
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define AX25_PIDINCL 8
36 #define AX25_PACLEN 10
37 #define AX25_IAMDIGI 12
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
40 #define SIOCAX25GETUID (SIOCPROTOPRIVATE+0)
41 #define SIOCAX25ADDUID (SIOCPROTOPRIVATE+1)
42 #define SIOCAX25DELUID (SIOCPROTOPRIVATE+2)
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define SIOCAX25NOUID (SIOCPROTOPRIVATE+3)
45 #define SIOCAX25OPTRT (SIOCPROTOPRIVATE+7)
46 #define SIOCAX25CTLCON (SIOCPROTOPRIVATE+8)
47 #define SIOCAX25GETINFOOLD (SIOCPROTOPRIVATE+9)
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define SIOCAX25ADDFWD (SIOCPROTOPRIVATE+10)
50 #define SIOCAX25DELFWD (SIOCPROTOPRIVATE+11)
51 #define SIOCAX25DEVCTL (SIOCPROTOPRIVATE+12)
52 #define SIOCAX25GETINFO (SIOCPROTOPRIVATE+13)
53 /* 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
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
61 struct sockaddr_ax25
{
62 __kernel_sa_family_t sax25_family
;
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 ax25_address sax25_call
;
67 #define sax25_uid sax25_ndigis
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 struct full_sockaddr_ax25
{
70 struct sockaddr_ax25 fsa_ax25
;
71 ax25_address fsa_digipeater
[AX25_MAX_DIGIS
];
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 struct ax25_routes_struct
{
75 ax25_address port_addr
;
76 ax25_address dest_addr
;
77 unsigned char digi_count
;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 ax25_address digi_addr
[AX25_MAX_DIGIS
];
81 struct ax25_route_opt_struct
{
82 ax25_address port_addr
;
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 ax25_address dest_addr
;
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 struct ax25_ctl_struct
{
90 ax25_address port_addr
;
91 ax25_address source_addr
;
92 ax25_address dest_addr
;
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
96 unsigned char digi_count
;
97 ax25_address digi_addr
[AX25_MAX_DIGIS
];
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
100 struct ax25_info_struct_deprecated
{
101 unsigned int n2
, n2count
;
102 unsigned int t1
, t1timer
;
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 unsigned int t2
, t2timer
;
105 unsigned int t3
, t3timer
;
106 unsigned int idle
, idletimer
;
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 unsigned int rcv_q
, snd_q
;
111 struct ax25_info_struct
{
112 unsigned int n2
, n2count
;
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 unsigned int t1
, t1timer
;
115 unsigned int t2
, t2timer
;
116 unsigned int t3
, t3timer
;
117 unsigned int idle
, idletimer
;
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
120 unsigned int rcv_q
, snd_q
;
121 unsigned int vs
, vr
, va
, vs_max
;
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
126 struct ax25_fwd_struct
{
127 ax25_address port_from
;
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 ax25_address port_to
;