patch-2.0.36 linux/include/linux/rose.h

Next file: linux/include/linux/serial.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.35/linux/include/linux/rose.h linux/include/linux/rose.h
@@ -7,9 +7,10 @@
 #ifndef	ROSE_KERNEL_H
 #define	ROSE_KERNEL_H
 
-#define PF_ROSE		AF_ROSE
 #define ROSE_MTU	251
 
+#define ROSE_MAX_DIGIS 6
+
 #define	ROSE_DEFER	1
 #define ROSE_T1		2
 #define	ROSE_T2		3
@@ -21,8 +22,11 @@
 #define	SIOCRSGCAUSE		(SIOCPROTOPRIVATE+0)
 #define	SIOCRSSCAUSE		(SIOCPROTOPRIVATE+1)
 #define	SIOCRSL2CALL		(SIOCPROTOPRIVATE+2)
+#define	SIOCRSSL2CALL		(SIOCPROTOPRIVATE+2)
 #define	SIOCRSACCEPT		(SIOCPROTOPRIVATE+3)
-#define	SIOCRSCLRRT		(SIOCPROTOPRIVATE+4)
+#define	SIOCRSCLRRT			(SIOCPROTOPRIVATE+4)
+#define	SIOCRSGL2CALL		(SIOCPROTOPRIVATE+5)
+#define	SIOCRSGFACILITIES	(SIOCPROTOPRIVATE+6)
 
 #define	ROSE_DTE_ORIGINATED	0x00
 #define	ROSE_NUMBER_BUSY	0x01
@@ -36,22 +40,30 @@
 #define	ROSE_SHIP_ABSENT	0x39
 
 typedef struct {
-	char		rose_addr[5];
+	char			rose_addr[5];
 } rose_address;
 
 struct sockaddr_rose {
 	unsigned short	srose_family;
 	rose_address	srose_addr;
 	ax25_address	srose_call;
-	int		srose_ndigis;
+	unsigned int	srose_ndigis;
 	ax25_address	srose_digi;
 };
 
+struct full_sockaddr_rose {
+	unsigned short	srose_family;
+	rose_address	srose_addr;
+	ax25_address	srose_call;
+	unsigned int	srose_ndigis;
+	ax25_address	srose_digis[ROSE_MAX_DIGIS];
+};
+
 struct rose_route_struct {
 	rose_address	address;
 	unsigned short	mask;
 	ax25_address	neighbour;
-	char		device[16];
+	char			device[16];
 	unsigned char	ndigis;
 	ax25_address	digipeaters[AX25_MAX_DIGIS];
 };
@@ -60,5 +72,17 @@
 	unsigned char	cause;
 	unsigned char	diagnostic;
 };
+
+struct rose_facilities_struct {
+	rose_address	source_addr,   dest_addr;
+	ax25_address	source_call,   dest_call;
+	unsigned char	source_ndigis, dest_ndigis;
+	ax25_address	source_digis[ROSE_MAX_DIGIS];
+	ax25_address	dest_digis[ROSE_MAX_DIGIS];
+	unsigned int	rand;
+	rose_address	fail_addr;
+	ax25_address	fail_call;
+};
+
 
 #endif

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov