patch-2.1.16 linux/include/linux/x25.h

Next file: linux/include/net/ipx.h
Previous file: linux/include/linux/sysctl.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.15/linux/include/linux/x25.h linux/include/linux/x25.h
@@ -0,0 +1,98 @@
+/*
+ * These are the public elements of the Linux kernel X.25 implementation.
+ */
+ 
+#ifndef	X25_KERNEL_H
+#define	X25_KERNEL_H
+
+#define PF_X25			AF_X25
+
+#define	SIOCX25SETSUBSCR	(SIOCPROTOPRIVATE + 0)
+
+/*
+ *	Values for {get,set}sockopt.
+ */
+#define	X25_QBITINCL		1
+#define	X25_PACKET_SIZE		10
+#define	X25_WINDOW_SIZE		11
+#define	X25_THROUGHPUT_SPEED	12
+#define	X25_REVERSE_CHARGE	13
+
+/*
+ *	X.25 Packet Size values.
+ */
+#define	X25_PS16		4
+#define	X25_PS32		5
+#define	X25_PS64		6
+#define	X25_PS128		7
+#define	X25_PS256		8
+#define	X25_PS512		9
+#define	X25_PS1024		10
+#define	X25_PS2048		11
+#define	X25_PS4096		12
+
+/*
+ *	X.25 Reset error and diagnostic codes.
+ */
+#define	X25_ERR_RESET		100	/* Call Reset			*/
+#define	X25_ERR_ROUT		101	/* Out of Order			*/
+#define	X25_ERR_RRPE		102	/* Remote Procedure Error	*/
+#define	X25_ERR_RLPE		103	/* Local Procedure Error	*/
+#define	X25_ERR_RNCG		104	/* Network Congestion		*/
+#define	X25_ERR_RRDO		105	/* Remote DTE Operational	*/
+#define	X25_ERR_RNOP		106	/* Network Operational		*/
+#define	X25_ERR_RINV		107	/* Invalid Call			*/
+#define	X25_ERR_RNOO		108	/* Network Out of Order		*/
+
+/*
+ *	X.25 Clear error and diagnostic codes.
+ */
+#define	X25_ERR_CLEAR		110	/* Call Cleared			*/
+#define	X25_ERR_CBUSY		111	/* Number Busy			*/
+#define	X25_ERR_COUT		112	/* Out of Order			*/
+#define	X25_ERR_CRPE		113	/* Remote Procedure Error	*/
+#define	X25_ERR_CRRC		114	/* Collect Call Refused		*/
+#define	X25_ERR_CINV		115	/* Invalid Call			*/
+#define	X25_ERR_CNFS		116	/* Invalid Fast Select		*/
+#define	X25_ERR_CSA		117	/* Ship Absent			*/
+#define	X25_ERR_CIFR		118	/* Invalid Facility Request	*/
+#define	X25_ERR_CAB		119	/* Access Barred		*/
+#define	X25_ERR_CLPE		120	/* Local Procedure Error	*/
+#define	X25_ERR_CNCG		121	/* Network Congestion		*/
+#define	X25_ERR_CNOB		122	/* Not Obtainable		*/
+#define	X25_ERR_CROO		123	/* RPOA Out of Order		*/
+
+/*
+ * An X.121 address, it is held as ASCII text, null terminated, up to 15
+ * digits and a null terminator.
+ */
+typedef struct {
+	char x25_addr[16];
+} x25_address;
+
+/*
+ *	Linux X.25 Address structure, used for bind, and connect mostly.
+ */
+struct sockaddr_x25 {
+	sa_family_t	sx25_family;		/* Must be AF_X25 */
+	x25_address	sx25_addr;		/* X.121 Address */
+};
+
+/*
+ *	DTE/DCE subscription options.
+ */
+struct x25_subscrip_struct {
+	char device[200];
+	unsigned int	extended;
+};
+
+/*
+ *	Routing table control structure.
+ */
+struct x25_route_struct {
+	x25_address	address;
+	unsigned int	sigdigits;
+	char		device[200];
+};
+
+#endif

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