Solstice X.25 9.2 Developer's Guide

11.1.1.2 LAPB Address Structure

The address field is only required when LAPB is being used over a Public Switched Telephone Network (PSTN). In this case, the dl_address fields contain the PSTN address, in the format defined by the pstnformat structure:

struct pstnformat {
   uint8   pstn_len;               /* Address length in octets */
   uint8   pstn_add[20];  /* LAPB Address in hexadecimal */
 };

The members of the pstnformat structure are:

Table 11-7 Members of pstnformat structure

Members 

Description 

pstn_len

The length of the address as bytes. 

pstn_add

The LSAP in hexadecimal format. This can be up to 20 digits long. 

The file /usr/include/netx25/sdlpi.h contains the structure definition.