ACC X.25 Protocol User's Guide
142 AppendixA
X.25 Status and Completion Messages
Unsolicited Status Messages
The status code symbolic names are available to C application programs
by including the file /opt/acc/include/zcom/zx25status.h.
The statuses marked “**” are received by the application with the packet
data. These statuses are only received if the “ notify application” option is
enabled for the virtual circuit terminal. The packet data layout is
described in /opt/acc/include/zcom/zcomx25.h for C as described in the
following diagrams.
The routine X25STAT may be called to convert any X.25 status codes to a
description. This is call compatible and may be used as a direct
replacement for the ZCOM Status call which is documented in the
Multiprotocol ACC Programmer’s Reference Guide.
TheCstructureforthepacketdatalayoutisasfollows:
#define X25PKDATALEN 512 /* Max len of facility + user data */
typedef struct {
uint16 x25pkdbit; /* Deliv. confm bit: ZX25_TRUE, ZX25_FALSE */
uint16 x25pkcaus; /* Cause code */
uint16 x25pkdiag; /* Diagnostic code */
uint16 x25pkdflg; /* Use call addr: ZX25_TRUE, ZX25_FALSE */
uint8 x25pkcald[8]; /* Called X.121 address */
uint16 x25pkgflg; /* Use calling addr: ZX25_TRUE, ZX25_FALSE */
uint8 x25pkclng[8]; /* Calling X.121 address */
uint16 x25pkflen; /* Facility data byte length */
uint16 x25pkulen; /* User data byte length */
char x25pkdata[X25PKDATALEN]; /* Facility and user data */
} x25pkform_type










