[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4 Files Reference

cb_res_struct Structure for X.25

Purpose

Used by the x25_reset and x25_receive subroutines to pass the reset cause and diagnostic codes.

Syntax

#define X25FLG_CAUSE       0x00000001
#define X25FLG_DIAGNOSTIC  0x00000002
struct cb_res_struct
{
  unsigned long flags;
  unsigned char cause;
  unsigned char diagnostic;
};

Flags

X25_FLG_CAUSE Indicates that the cause field is used.
X25_FLG_DIAGNOSTIC Indicates that the diagnostic field is used.

Fields

Structure field definitions are as follows:

Element Description
flags Notification to the API that the associated field has been used.
cause Cause value of either 0 or in the range 0x80-0xFF, to be inserted in the reset packet.
diagnostic Diagnostic reason to be inserted in the packet. The CCITT default value is 0.

Related Information

The x25sdefs.h file.


[ Previous | Next | Contents | Glossary | Home | Search ]