patch-2.1.22 linux/include/linux/ax25.h
Next file: linux/include/linux/bios32.h
Previous file: linux/include/linux/atalk.h
Back to the patch index
Back to the overall index
- Lines: 112
- Date:
Sun Jan 19 15:47:26 1997
- Orig file:
v2.1.21/linux/include/linux/ax25.h
- Orig date:
Tue Nov 19 15:53:56 1996
diff -u --recursive --new-file v2.1.21/linux/include/linux/ax25.h linux/include/linux/ax25.h
@@ -2,10 +2,10 @@
* These are the public elements of the Linux kernel AX.25 code. A similar
* file netrom.h exists for the NET/ROM protocol.
*/
-
+
#ifndef AX25_KERNEL_H
#define AX25_KERNEL_H
-
+
#define PF_AX25 AF_AX25
#define AX25_MTU 256
#define AX25_MAX_DIGIS 6 /* This is wrong, should be 8 */
@@ -21,6 +21,7 @@
#define AX25_IDLE 9
#define AX25_PACLEN 10
#define AX25_MAXQUEUE 11
+#define AX25_IAMDIGI 12
#define AX25_KILL 99
@@ -28,8 +29,11 @@
#define SIOCAX25ADDUID (SIOCPROTOPRIVATE+1)
#define SIOCAX25DELUID (SIOCPROTOPRIVATE+2)
#define SIOCAX25NOUID (SIOCPROTOPRIVATE+3)
-#define SIOCAX25OPTRT (SIOCPROTOPRIVATE+4)
-#define SIOCAX25CTLCON (SIOCPROTOPRIVATE+5)
+#define SIOCAX25OPTRT (SIOCPROTOPRIVATE+7)
+#define SIOCAX25CTLCON (SIOCPROTOPRIVATE+8)
+#define SIOCAX25GETINFO (SIOCPROTOPRIVATE+9)
+#define SIOCAX25ADDFWD (SIOCPROTOPRIVATE+10)
+#define SIOCAX25DELFWD (SIOCPROTOPRIVATE+11)
#define AX25_SET_RT_IPMODE 2
@@ -37,13 +41,13 @@
#define AX25_NOUID_BLOCK 1
typedef struct {
- char ax25_call[7]; /* 6 call + SSID (shifted ascii!) */
+ char ax25_call[7]; /* 6 call + SSID (shifted ascii!) */
} ax25_address;
struct sockaddr_ax25 {
- sa_family_t sax25_family;
- ax25_address sax25_call;
- int sax25_ndigis;
+ sa_family_t sax25_family;
+ ax25_address sax25_call;
+ int sax25_ndigis;
/* Digipeater ax25_address sets follow */
};
@@ -51,29 +55,44 @@
struct full_sockaddr_ax25 {
struct sockaddr_ax25 fsa_ax25;
- ax25_address fsa_digipeater[AX25_MAX_DIGIS];
+ ax25_address fsa_digipeater[AX25_MAX_DIGIS];
};
struct ax25_routes_struct {
- ax25_address port_addr;
- ax25_address dest_addr;
- unsigned char digi_count;
- ax25_address digi_addr[AX25_MAX_DIGIS];
+ ax25_address port_addr;
+ ax25_address dest_addr;
+ unsigned char digi_count;
+ ax25_address digi_addr[AX25_MAX_DIGIS];
};
struct ax25_route_opt_struct {
- ax25_address port_addr;
- ax25_address dest_addr;
- int cmd;
- int arg;
+ ax25_address port_addr;
+ ax25_address dest_addr;
+ int cmd;
+ int arg;
};
struct ax25_ctl_struct {
- ax25_address port_addr;
- ax25_address source_addr;
- ax25_address dest_addr;
- unsigned int cmd;
- unsigned long arg;
+ ax25_address port_addr;
+ ax25_address source_addr;
+ ax25_address dest_addr;
+ unsigned int cmd;
+ unsigned long arg;
+};
+
+struct ax25_info_struct {
+ unsigned int n2, n2count;
+ unsigned int t1, t1timer;
+ unsigned int t2, t2timer;
+ unsigned int t3, t3timer;
+ unsigned int idle, idletimer;
+ unsigned int state;
+ unsigned int rcv_q, snd_q;
+};
+
+struct ax25_fwd_struct {
+ ax25_address port_from;
+ ax25_address port_to;
};
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov