This chapter contains a summary of error codes returned by the NLI programming interface.
The following tables list the OSI error codes defined in <netx25/x25_proto.h>.
To identify the originator in N_RI and N_DI messages:
NS_USER 1
NS_PROVIDER 2
To specify the reason when the originator is the Network Service provider in N_DI messages:
Table 9-1 Reason when Originator is NS Provider
Code |
Value |
---|---|
NS_GENERIC |
0xE0 |
NS_DTRANSIENT |
0xE1 |
NS_DPERMANENT |
0xE2 |
NS_TUNSPECIFIED |
0xE3 |
NS_PUNSPECIFIED |
0xE4 |
NS_QOSNATRANSIENT |
0xE5 |
NS_QOSNAPERMANENT |
0xE6 |
NS_NSAPTUNREACHABLE |
0xE7 |
NS_NSAPPUNREACHABLE |
0xE8 |
NS_NSAPPUNKNOWN |
0xEB |
To specify the reason when the originator is the Network Service user in N_DI messages:
Table 9-2 Reason when Originator is NS User
Code |
Value |
---|---|
NU_GENERIC |
0xF0 |
NU_DNORMAL |
0xF1 |
NU_DABNORMAL |
0xF2 |
NU_DINCOMPUSERDATA |
0xF3 |
NU_TRANSIENT |
0xF4 |
NU_PERMANENT |
0xF5 |
NU_QOSNATRANSIENT |
0xF6 |
NU_QOSNAPERMANENT |
0xF7 |
NU_INCOMPUSERDATA |
0xF8 |
NU_BADPROTID |
0xF9 |
To specify the reason when the originator is the Network Service provider in N_RI messages:
NS_RUNSPECIFIED 0xE9
NS_RCONGESTION 0xEA
To specify the reason when the originator is the Network Service user in N_RI messages:
NU_RESYNC 0xFA
These codes are defined in ISO 8208 and are mapped from X.25 cause and diagnostic codes as described in ISO 8878.
You can decode the error codes listed in this chapter using the /opt/SUNWconn/x25/bin/x25diags utility. Enter x25diags followed by the hexadecimal value returned. For example:
hostname% x25diags E4 diag is 228 (decimal), E4 (hexa) : OSI Network service problem : Connection rejection -- reason unspecified (permanent condition)