HP X.25/9000 Programmer's Guide

Chapter 6 93
Extended Features
Using Facilities
facilities markers are those described in the 1988 CCITT X.25
Recommendations and in the 1987 ISO 8208 Standard.
Legal facilities markers are:
0x000f – for CCITT specified DTE facilities used to support the OSI
Network service.
0x0000 – for non-X.25 facilities supported by the local network for an
internal network call, or for non-X.25 facilities supported by the
network of the calling DTE for an internetwork call.
0x00ff – for non-X.25 facilities supported by the network of the called
DTE for an internetwork call.
NOTE Network facilities entries must be provided in the above order with the
X.25 facilities first. The length of the Network facilities entry is limited
to 32 Bytes. Illegal facilities codes return the EINVAL(22) error
condition.
Syntax for ioctl(X25_WR_FACILITIES)
The ioctl(X25_WR_FACILITIES) call and its parameters are described
below.
#include <x25/x25ioctls.h>
#include <x25/x25str.h>
/* define X25_MAX_FACILITIES_LEN 109
* struct x25_facilities {
* u_char x25_fac_len;
* u_char x25_fac[X25_MAX_FACILITIES_LEN];
* }
*/
int err;
int sd;
struct x25_facilities fac_data;
err = ioctl(sd, X25_WR_FACILITIES, &fac_data);
sd A socket descriptor for a VC socket that has not yet been connected.
X25_WR_
FACILITIES
The definition for the request.
36960-90061.bk Page 93 Friday, November 10, 2000 3:42 PM