1 .\" SPDX-License-Identifier: Linux-man-pages-1-para
3 .\" This man page is Copyright (C) 1998 Heiner Eisen.
5 .\" $Id: x25.7,v 1.4 1999/05/18 10:35:12 freitag Exp $
7 .TH x25 7 (date) "Linux man-pages (unreleased)"
9 x25 \- ITU-T X.25 / ISO-8208 protocol interface
12 .B #include <sys/socket.h>
13 .B #include <linux/x25.h>
15 .IB x25_socket " = socket(AF_X25, SOCK_SEQPACKET, 0);"
18 X25 sockets provide an interface to the X.25 packet layer protocol.
19 This allows applications to
20 communicate over a public X.25 data network as standardized by
21 International Telecommunication Union's recommendation X.25
23 X25 sockets can also be used for communication
24 without an intermediate X.25 network (X.25 DTE-DTE mode) as described
27 Message boundaries are preserved \[em] a
30 retrieve the same chunk of data as output with the corresponding
33 When necessary, the kernel takes care
34 of segmenting and reassembling long messages by means of
36 There is no hard-coded upper limit for the
38 However, reassembling of a long message might fail if
39 there is a temporary lack of system resources or when other constraints
40 (such as socket memory or buffer size limits) become effective.
42 occurs, the X.25 connection will be reset.
46 socket address family uses the
47 .I struct sockaddr_x25
48 for representing network addresses as defined in ITU-T
54 sa_family_t sx25_family; /* must be AF_X25 */
55 x25_address sx25_addr; /* X.121 Address */
63 to be interpreted as a null-terminated string.
64 .I sx25_addr.x25_addr[]
65 consists of up to 15 (not counting the terminating null byte) ASCII
66 characters forming the X.121 address.
67 Only the decimal digit characters from \[aq]0\[aq] to \[aq]9\[aq] are allowed.
69 The following X.25-specific socket options can be set by using
79 Controls whether the X.25 Q-bit (Qualified Data Bit) is accessible by the
81 It expects an integer argument.
82 If set to 0 (default),
83 the Q-bit is never set for outgoing packets and the Q-bit of incoming
85 If set to 1, an additional first byte is prepended
86 to each message read from or written to the socket.
88 the socket, a 0 first byte indicates that the Q-bits of the corresponding
89 incoming data packets were not set.
90 A first byte with value 1 indicates
91 that the Q-bit of the corresponding incoming data packets was set.
92 If the first byte of the data written to the socket is 1, the Q-bit of the
93 corresponding outgoing data packets will be set.
94 If the first byte is 0,
95 the Q-bit will not be set.
97 The AF_X25 protocol family is a new feature of Linux 2.2.
99 Plenty, as the X.25 PLP implementation is
100 .BR CONFIG_EXPERIMENTAL .
102 This man page is incomplete.
104 There is no dedicated application programmer's header file yet;
105 you need to include the kernel header file
107 .B CONFIG_EXPERIMENTAL
108 might also imply that future versions of the
109 interface are not binary compatible.
111 X.25 N-Reset events are not propagated to the user process yet.
113 if a reset occurred, data might be lost without notice.
118 Jonathan Simon Naylor:
119 \[lq]The Re-Analysis and Re-Implementation of X.25.\[rq]
121 .UR ftp://ftp.pspt.fi\:/pub\:/ham\:/linux\:/ax25\:/x25doc.tgz