summaryrefslogtreecommitdiffstats
path: root/kernel_rose.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel_rose.h')
-rw-r--r--kernel_rose.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/kernel_rose.h b/kernel_rose.h
index 96ea1eb..1e93b6b 100644
--- a/kernel_rose.h
+++ b/kernel_rose.h
@@ -1,5 +1,5 @@
/* Definitions for Rose packet radio address family.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -31,6 +31,8 @@
requires ax25.h for the definition of the ax25_address structure. */
#define ROSE_MTU 251
+#define ROSE_MAX_DIGIS 6
+
#define ROSE_DEFER 1
#define ROSE_T1 2
#define ROSE_T2 3
@@ -46,6 +48,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
@@ -73,6 +76,15 @@ struct sockaddr_rose
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;
@@ -89,4 +101,16 @@ struct rose_cause_struct
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 /* netrose/rose.h */