HP-UX SNAplus2 NOF Programmer's Guide

NOF API Verbs (QUERY Verbs)
QUERY_COS
Chapter 4 559
QUERY_COS
QUERY_COS returns route calculation information for a specific class of
service (COS).
This verb can be used to obtain information about a specific COS or
about multiple COSs, depending on the options used.
VCB Structure
typedef struct query_cos
{
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 cos_name[8]; /* cos name */
} QUERY_COS;
typedef struct cos_data
{
AP_UINT16 overlay_size; /* size of returned entry */
unsigned char cos_name[8]; /* cos name */
unsigned char description[32]; /* resource description */
unsigned char reserv1[16]; /* reserved */
unsigned char transmission_priority; /* transmission priority */
AP_UINT16 num_of_node_rows; /* number of node rows */
AP_UINT16 num_of_tg_rows; /* number of tg rows */
AP_UINT32 trees; /* number of tree caches for COS */
AP_UINT32 calcs; /* number of route calculations */
/* for this COS */
AP_UINT32 rejs; /* number of route rejects for */
/* COS */
unsigned char reserva[20]; /* reserved */
} COS_DATA;