Solstice X.25 9.2 Developer's Guide

6.3.1 xaddrf--Define Addressing

Addressing is defined by the xaddrf structure:


Example 6-2 xaddrf Structure

#define NSAPMAXSIZE 20

 struct xaddrf {
        uint32_t           link_id;
        unsigned char           aflags;
        struct lsapformat       DTE_MAC;
        unsigned char           nsap_len;
        unsigned char           NSAP[NSAPMAXSIZE];
}

The members in the xaddrf structure are:

Table 6-4 Members of xaddrf Structure

Member 

Description 

link_id

Holds the link number as an uint32_t. By default, link_id has a value of 0xFF. When link_id is 0xFF, Solstice X.25 attempts to match the called address with an entry in a routing configuration file. If it cannot find a match, it routes the call over the lowest numbered WAN link.

aflags

Specifies the options required or used by the subnetwork to encode and interpret addresses. Takes one of these values:

NSAP_ADDR 0x00 NSAP field contains OSI-encoded NSAP address

EXT_ADDR 0x01 NSAP field contains non-OSI-encoded extended address

PVC_LCI 0x02 NSAP field contains a PVC number.

DTE_MAC

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

nsap_len

The length in semi-octets of the NSAP as two BCD digits per byte, right justified. 

NSAP

The NSAP or address extension (see aflags) as two BCD digits per byte, right justified.