1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef AX25_KERNEL_H 8 #define AX25_KERNEL_H 9 #include <linux/socket.h> 10 #define AX25_MTU 256 11 #define AX25_MAX_DIGIS 8 12 #define AX25_WINDOW 1 13 #define AX25_T1 2 14 #define AX25_N2 3 15 #define AX25_T3 4 16 #define AX25_T2 5 17 #define AX25_BACKOFF 6 18 #define AX25_EXTSEQ 7 19 #define AX25_PIDINCL 8 20 #define AX25_IDLE 9 21 #define AX25_PACLEN 10 22 #define AX25_IAMDIGI 12 23 #define AX25_KILL 99 24 #define SIOCAX25GETUID (SIOCPROTOPRIVATE + 0) 25 #define SIOCAX25ADDUID (SIOCPROTOPRIVATE + 1) 26 #define SIOCAX25DELUID (SIOCPROTOPRIVATE + 2) 27 #define SIOCAX25NOUID (SIOCPROTOPRIVATE + 3) 28 #define SIOCAX25OPTRT (SIOCPROTOPRIVATE + 7) 29 #define SIOCAX25CTLCON (SIOCPROTOPRIVATE + 8) 30 #define SIOCAX25GETINFOOLD (SIOCPROTOPRIVATE + 9) 31 #define SIOCAX25ADDFWD (SIOCPROTOPRIVATE + 10) 32 #define SIOCAX25DELFWD (SIOCPROTOPRIVATE + 11) 33 #define SIOCAX25DEVCTL (SIOCPROTOPRIVATE + 12) 34 #define SIOCAX25GETINFO (SIOCPROTOPRIVATE + 13) 35 #define AX25_SET_RT_IPMODE 2 36 #define AX25_NOUID_DEFAULT 0 37 #define AX25_NOUID_BLOCK 1 38 typedef struct { 39 char ax25_call[7]; 40 } ax25_address; 41 struct sockaddr_ax25 { 42 __kernel_sa_family_t sax25_family; 43 ax25_address sax25_call; 44 int sax25_ndigis; 45 }; 46 #define sax25_uid sax25_ndigis 47 struct full_sockaddr_ax25 { 48 struct sockaddr_ax25 fsa_ax25; 49 ax25_address fsa_digipeater[AX25_MAX_DIGIS]; 50 }; 51 struct ax25_routes_struct { 52 ax25_address port_addr; 53 ax25_address dest_addr; 54 unsigned char digi_count; 55 ax25_address digi_addr[AX25_MAX_DIGIS]; 56 }; 57 struct ax25_route_opt_struct { 58 ax25_address port_addr; 59 ax25_address dest_addr; 60 int cmd; 61 int arg; 62 }; 63 struct ax25_ctl_struct { 64 ax25_address port_addr; 65 ax25_address source_addr; 66 ax25_address dest_addr; 67 unsigned int cmd; 68 unsigned long arg; 69 unsigned char digi_count; 70 ax25_address digi_addr[AX25_MAX_DIGIS]; 71 }; 72 struct ax25_info_struct_deprecated { 73 unsigned int n2, n2count; 74 unsigned int t1, t1timer; 75 unsigned int t2, t2timer; 76 unsigned int t3, t3timer; 77 unsigned int idle, idletimer; 78 unsigned int state; 79 unsigned int rcv_q, snd_q; 80 }; 81 struct ax25_info_struct { 82 unsigned int n2, n2count; 83 unsigned int t1, t1timer; 84 unsigned int t2, t2timer; 85 unsigned int t3, t3timer; 86 unsigned int idle, idletimer; 87 unsigned int state; 88 unsigned int rcv_q, snd_q; 89 unsigned int vs, vr, va, vs_max; 90 unsigned int paclen; 91 unsigned int window; 92 }; 93 struct ax25_fwd_struct { 94 ax25_address port_from; 95 ax25_address port_to; 96 }; 97 #endif 98