Solstice X.25 9.2 Developer's Guide

11.2.2.2 L_GETPPA--Returns the PPA Associated With a Stream

This ioctl returns the PPA and link index associated with the stream.

Associated Structure:
/* Ioctl block for L_SETPPA and L_GETPPA commands */
 struct ll_snioc {
     uint8        lli_type;     /* Table type = LI_SPPA            */
     uint8        lli_class;    /* DTE/DCE/extended                */
     uint16       lli_slp_pri;  /* SLP priority                    */
     uint32       lli_ppa;      /* PPA/ Subnetwork ID character    */
     uint32       lli_index;    /* Link index                      */
 };

The members of the ll_snioc structure are:

Table 11-44 Members of the ll_snioc structure

Member 

Description 

lli_type

The table type. This should always be LI_SPPA. 

lli_class

This indicates the type of link. LC_LLC2 must be used for LLC2; LC__LAPBDTE or LC_LAPBDCE must be used for LAPB. The file /usr/include/netdlc/ll_proto.h contains a complete list of values.

lli_slp_pri

This determines the priority of SLP when MLP is used. 

lli_ppa

The PPA identifier 

lli_index

The link index. This must be set with the muxid value returned by the I-LINK ioctl when LAPB is placed over a serial driver.

Errors
Table 11-45 L_GETPPA errors

Error 

Description 

ENODEV

No such device or a DL_ATTACH_REQ has not been sent.