From beb116954b9b7f3bb56412b2494b562f02b864b1 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 7 Jan 1997 02:33:00 +0000 Subject: Import of Linux/MIPS 2.1.14 --- include/linux/rose.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 include/linux/rose.h (limited to 'include/linux/rose.h') diff --git a/include/linux/rose.h b/include/linux/rose.h new file mode 100644 index 000000000..ca69e1e8b --- /dev/null +++ b/include/linux/rose.h @@ -0,0 +1,51 @@ +/* + * These are the public elements of the Linux kernel Rose implementation. + * For kernel AX.25 see the file ax25.h. This file requires ax25.h for the + * definition of the ax25_address structure. + */ + +#ifndef ROSE_KERNEL_H +#define ROSE_KERNEL_H + +#define PF_ROSE AF_ROSE +#define ROSE_MTU 128 + +#define ROSE_T0 1 +#define ROSE_T1 2 +#define ROSE_T2 3 +#define ROSE_T3 4 +#define ROSE_IDLE 5 +#define ROSE_HDRINCL 6 + +#define ROSE_KILL 99 + +#define SIOCRSCTLCON (SIOCPROTOPRIVATE+0) + +typedef struct { + char rose_addr[5]; +} rose_address; + +struct sockaddr_rose { + sa_family_t srose_family; + rose_address srose_addr; + ax25_address srose_call; + int srose_ndigis; + ax25_address srose_digi; +}; + +struct rose_route_struct { + rose_address address; + ax25_address neighbour; + char device[16]; + unsigned char ndigis; + ax25_address digipeaters[AX25_MAX_DIGIS]; +}; + +struct rose_ctl_struct { + unsigned int lci; + char dev[20]; + unsigned int cmd; + unsigned long arg; +}; + +#endif -- cgit v1.2.3