HP-UX SNAplus2 NOF Programmer's Guide

NOF API Verbs (QUERY Verbs)
QUERY_PU
Chapter 4896
QUERY_PU
QUERY_PU returns information about local PUs and the links
associated with them. This verb can be used to obtain information about
a specific PU or about multiple PUs, depending on the options used.
This verb must be issued to a running node.
VCB Structure
typedef struct query_pu
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
unsigned char *buf_ptr; /* pointer to buffer */
AP_UINT32 buf_size; /* buffer size */
AP_UINT32 total_buf_size; /* total buffer size required */
AP_UINT16 num_entries; /* number of entries */
AP_UINT16 total_num_entries; /* total number of entries */
unsigned char list_options; /* listing options */
unsigned char reserv3; /* reserved */
unsigned char pu_name[8]; /* PU name */
unsigned char host_attachment; /* host attachment filter */
} QUERY_PU;
typedef struct pu_data
{
AP_UINT16 overlay_size; /* size of returned entry */
unsigned char pu_name[8]; /* PU name */
unsigned char description[32]; /* resource description */
unsigned char reserv1[16]; /* reserved */
unsigned char ls_name[8]; /* LS name */
unsigned char pu_sscp_sess_active; /* Is PU-SSCP session active */
unsigned char host_attachment; /* Host attachment */
unsigned char reserv1[2]; /* reserved */
SESSION_STATS pu_sscp_stats; /* PU-SSCP session statistics */
unsigned char sscp_id[6]; /* SSCP ID */
unsigned char reserva[14]; /* reserved */
} PU_DATA;
typedef struct session_stats
{
AP_UINT16 rcv_ru_size; /* session receive RU size */