Solstice X.25 9.2 Developer's Guide

6.3.2 lsapformat--Define an LSAP

The LSAP is defined by the lsapformat structure:


Example 6-3 lsapformat Structure

#define LSAPMAXSIZE 9

 struct lsapformat {
 			uint8						lsap_len;
 			uint8						lsap_add[LSAPMAXSIZE];
 }; 

The members of the lsapformat structure are:

Table 6-5 Members of lsapformat Structure

Member 

Description 

lsap_len

The length of the DTE address or LSAP as two BCD digits per byte, right justified. An LSAP is always 14 digits long. A DTE address can be up to 15 decimal digits unless X.25 (88) and TOA/NPI addressing is used, in which case it can be up to 17 decimal digits. A PVC_LCI is 3 digits long.

lsap_add

The DTE address, LSAP or PVC_LCI as two BCD digits per byte, right justified.