Solstice X.25 9.2 Developer's Guide

2.2 NLI Commands

Solstice X.25 NLI provides a series of NLI commands contained within C structures. These determine the format of the control parts of putmsg and getmsg. The NLI commands correspond to X.25 packet types, and are used to communicate with the network. For example, when an application passes down the NLI command N_CI to a stream using putmsg, this is translated into an X.25 Call Connect by the PLP module. When the PLP module receives a Connect Indication, it translates it into an N_CI command which is passed up to the application using a getmsg system call.

Table 2-1 summarizes the structures and their corresponding Packet Types and NLI Commands. Refer to the sections indicated for detailed information.

Table 2-1 NLI Commands and Structures

NLI Command 

X.25 Packet 

NLI Structure 

See section 

N_Abort

Abort Indication

xabortf

"6.4.1 N_Abort--Abort Indication"

N_CC

Call Response/ Confirmation

xccnff

"6.4.2 N_CC--Call Response/Confirmation"

N_CI

Call Request/ Indication

xcallf

"6.4.3 N_CI--Call Request/Indication"

N_DAck

Data Acknowledgment Request/Indication

xdatacf

"6.4.4 N_DAck--Data Ack Request/Indication"

N_Data

Data

xdataf

"6.4.5 N_Data--Data"

N_DC

Clear Confirm

xdcnff

"6.4.6 N_DC--Clear Confirm"

N_DI

Clear Request/Indication

xdiscf

"6.4.7 N_DI--Clear Request/Indication ""6.4.13 N_RI--Reset Request/Indication"

N_EAck

Expedited Data Acknowledgment

xedatacf

"6.4.8 N_EAck--Expedited Data Acknowledgement"

N_EData

Expedited Data

xedataf

"6.4.9 N_EData--Expedited Data"

N_RC

Reset Response/Confirm

xrscf

"6.4.12 N_RC--Reset Response/Confirm"

N_RI

Reset Request/Indication

xrstf

"6.4.13 N_RI--Reset Request/Indication"

The following commands and structures are also provided. They do not correspond to X.25 packet types:

Table 2-2 PVC and Listening Commands and Structures

NLI Command 

NLI Structure 

Description 

See section 

N_PVC_ATTACH

pvcattf

Specify X.25 service to use with PVC 

"6.4.10 N_PVC_ATTACH--PVC Attach "

N_PVC_DETACH

pvcdetf

Specify X.25 service to stop using with PVC 

"6.4.11 N_PVC_DETACH--PVC Detach "

N_Xcanlis

xcanlisf

Cancel listening 

"6.4.14 N_Xcanlis--Listen Cancel Command/Response"

N_Xlisten

xlistenf

Listen for incoming calls 

"6.4.15 N_Xlisten--Listen Command/Response"