1 .\" This man page is Copyright (C) 1998 Heiner Eisen.
3 .\" %%%LICENSE_START(VERBATIM_ONE_PARA)
4 .\" Permission is granted to distribute possibly modified copies
5 .\" of this page provided the header is included verbatim,
6 .\" and in case of nontrivial modification author and date
7 .\" of the modification is added to the header.
10 .\" $Id: x25.7,v 1.4 1999/05/18 10:35:12 freitag Exp $
12 .TH X25 7 2012-08-05 "Linux" "Linux Programmer's Manual"
14 x25 \- ITU-T X.25 / ISO-8208 protocol interface.
16 .B #include <sys/socket.h>
18 .B #include <linux/x25.h>
20 .B x25_socket = socket(AF_X25, SOCK_SEQPACKET, 0);
22 X25 sockets provide an interface to the X.25 packet layer protocol.
23 This allows applications to
24 communicate over a public X.25 data network as standardized by
25 International Telecommunication Union's recommendation X.25
27 X25 sockets can also be used for communication
28 without an intermediate X.25 network (X.25 DTE-DTE mode) as described
31 Message boundaries are preserved \(em a
34 retrieve the same chunk of data as output with the corresponding
37 When necessary, the kernel takes care
38 of segmenting and reassembling long messages by means of
40 There is no hard-coded upper limit for the
42 However, reassembling of a long message might fail if
43 there is a temporary lack of system resources or when other constraints
44 (such as socket memory or buffer size limits) become effective.
46 occurs, the X.25 connection will be reset.
50 socket address family uses the
51 .I struct sockaddr_x25
52 for representing network addresses as defined in ITU-T
58 sa_family_t sx25_family; /* must be AF_X25 */
59 x25_address sx25_addr; /* X.121 Address */
67 to be interpreted as a null-terminated string.
68 .I sx25_addr.x25_addr[]
69 consists of up to 15 (not counting the terminating null byte) ASCII
70 characters forming the X.121 address.
71 Only the decimal digit characters from \(aq0\(aq to \(aq9\(aq are allowed.
73 The following X.25-specific socket options can be set by using
83 Controls whether the X.25 Q-bit (Qualified Data Bit) is accessible by the
85 It expects an integer argument.
86 If set to 0 (default),
87 the Q-bit is never set for outgoing packets and the Q-bit of incoming
89 If set to 1, an additional first byte is prepended
90 to each message read from or written to the socket.
92 the socket, a 0 first byte indicates that the Q-bits of the corresponding
93 incoming data packets were not set.
94 A first byte with value 1 indicates
95 that the Q-bit of the corresponding incoming data packets was set.
96 If the first byte of the data written to the socket is 1, the Q-bit of the
97 corresponding outgoing data packets will be set.
98 If the first byte is 0,
99 the Q-bit will not be set.
101 The AF_X25 protocol family is a new feature of Linux 2.2.
103 Plenty, as the X.25 PLP implementation is
104 .BR CONFIG_EXPERIMENTAL .
106 This man page is incomplete.
108 There is no dedicated application programmer's header file yet;
109 you need to include the kernel header file
111 .B CONFIG_EXPERIMENTAL
112 might also imply that future versions of the
113 interface are not binary compatible.
115 X.25 N-Reset events are not propagated to the user process yet.
117 if a reset occurred, data might be lost without notice.
122 Jonathan Simon Naylor:
123 \(lqThe Re-Analysis and Re-Implementation of X.25.\(rq
125 .UR ftp://ftp.pspt.fi\:/pub\:/ham\:/linux\:/ax25\:/x25doc.tgz