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 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 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 57typedef struct { 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 char ax25_call[7]; 60} ax25_address; 61struct 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; 65 int sax25_ndigis; 66}; 67#define sax25_uid sax25_ndigis 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69struct full_sockaddr_ax25 { 70 struct sockaddr_ax25 fsa_ax25; 71 ax25_address fsa_digipeater[AX25_MAX_DIGIS]; 72}; 73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74struct 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]; 80}; 81struct 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; 85 int cmd; 86 int arg; 87}; 88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 89struct 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 */ 94 unsigned int cmd; 95 unsigned long arg; 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 */ 99}; 100struct 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; 107 unsigned int state; 108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 109 unsigned int rcv_q, snd_q; 110}; 111struct 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 */ 119 unsigned int state; 120 unsigned int rcv_q, snd_q; 121 unsigned int vs, vr, va, vs_max; 122 unsigned int paclen; 123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 124 unsigned int window; 125}; 126struct 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; 130}; 131#endif 132