HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
QUERY_DLC
DLC_DEF_DATA def_data; /* Defined data */
} DLC_DETAIL;
typedef struct dlc_det_data
{
unsigned char state; /* State of the DLC */
unsigned char reserv3[3]; /* reserved */
unsigned char reserva[20]; /* reserved */
} DLC_DET_DATA;
typedef struct dlc_def_data
{
unsigned char description[32]; /* resource description */
unsigned char initially_active; /* is DLC initially active? */
unsigned char reserv1[15]; /* reserved */
unsigned char dlc_type; /* DLC type */
unsigned char neg_ls_supp; /* negotiable link station support */
unsigned char port_types; /* port types supported by DLC type */
unsigned char hpr_only; /* only support HPR? */
unsigned char reserv3; /* reserved */
unsigned char retry_flags; /* reserved */
AP_UINT16 max_activation_attempts; /* reserved */
AP_UINT16 activation_delay_timer; /* reserved */
unsigned char reserv4[4]; /* reserved */
AP_UINT16 dlc_spec_data_len; /* Length of DLC specific data */
} DLC_DEF_DATA;
For more details of the DLC-specic data, see Section 3.19, DEFINE_DLC. The data structure for this data follows
the
dlc_def_data structure, but is padded to start on a 4-byte boundary.
3.110.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_QUERY_DLC
buf_ptr
A pointer to a data buffer that SNAplus2 will use to return the requested information.
buf_size
Size of the supplied data buffer.
num_entries
Maximum number of DLCs for which data should be returned. To request data for a specic DLC rather
than a range, specify the value 1. To return as many entries as possible, specify zero; in this case, SNAplus2
will return the maximum number of entries that can be accommodated in the supplied data buffer.
list_options
The position in the list from which SNAplus2 should begin to return data, and the level of information required
for each entry. Specify the level of information with one of the following values:
AP_SUMMARY
Summary information only.
AP_DETAIL
Detailed information.
405