HP-UX SNAplus2 NOF Programmer's Guide

NOF API Verbs (QUERY Verbs)
QUERY_DLC
Chapter 4 617
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 reserv3[11]; /* reserved */
AP_UINT16 dlc_spec_data_len; /* Length of DLC specific data */
} DLC_DEF_DATA;
For more details of the DLC-specific data, see “DEFINE_DLC”. The data
structure for this data follows the dlc_def_data structure, but is padded
to start on a 4-byte boundary.
Supplied Parameters
The application supplies the following parameters:
opcode
AP_QUERY_DLC
overlay_size
For compatability with future releases of SNAplus2,
your application must use this field to determine the
exact length of the overlay structure returned, and
should not rely on the use of the sizeof() function.
buf_ptr
A pointer to a data buffer that SNAplus2 will use to
return the requested information.
buf_size