Used by the x25_reset and x25_receive subroutines to pass the reset cause and diagnostic codes.
#define X25FLG_CAUSE 0x00000001
#define X25FLG_DIAGNOSTIC 0x00000002
struct cb_res_struct
{
unsigned long flags;
unsigned char cause;
unsigned char diagnostic;
};
Item | Description |
---|---|
X25_FLG_CAUSE | Indicates that the cause field is used. |
X25_FLG_DIAGNOSTIC | Indicates that the diagnostic field is used. |
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. |