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

Next file: linux/include/linux/serial167.h
Previous file: linux/include/linux/pci.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.124/linux/include/linux/rose.h linux/include/linux/rose.h
@@ -9,6 +9,8 @@
 
 #define ROSE_MTU	251
 
+#define ROSE_MAX_DIGIS 6
+
 #define	ROSE_DEFER	1
 #define ROSE_T1		2
 #define	ROSE_T2		3
@@ -24,6 +26,7 @@
 #define	SIOCRSACCEPT		(SIOCPROTOPRIVATE+3)
 #define	SIOCRSCLRRT		(SIOCPROTOPRIVATE+4)
 #define	SIOCRSGL2CALL		(SIOCPROTOPRIVATE+5)
+#define	SIOCRSGFACILITIES	(SIOCPROTOPRIVATE+6)
 
 #define	ROSE_DTE_ORIGINATED	0x00
 #define	ROSE_NUMBER_BUSY	0x01
@@ -48,6 +51,14 @@
 	ax25_address	srose_digi;
 };
 
+struct full_sockaddr_rose {
+	sa_family_t	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;
@@ -60,6 +71,17 @@
 struct rose_cause_struct {
 	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