HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
QUERY_MODE_TO_COS_MAPPING
AP_PARAMETER_CHECK
secondary_rc
Possible values are:
AP_INVALID_MODE_NAME
The list_options parameter was set to AP_LIST_INCLUSIVE to list all entries starting from the
supplied name, but the mode_name parameter was not valid.
AP_INVALID_LIST_OPTION
The list_options parameter was not set to a valid value.
Appendix B, Common Return Codes lists further secondary return codes associated with
AP_PARAMETER_CHECK,
which are common to all NOF verbs.
3.138.5 Returned Parameters: Other Conditions
Appendix B, Common Return Codes lists further combinations of primary and secondary return codes that are
common to all NOF verbs.
3.139 QUERY_MODE_TO_COS_MAPPING
QUERY_MODE_TO_COS_MAPPING returns information about the COS (class of service) associated with a
particular mode. This verb can be used to obtain information about a specic mode or about multiple modes,
depending on the options used.
This verb must be issued to a running node.
3.139.1 VCB Structure
typedef struct query_mode_to_cos_mapping
{
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 mode_name[8]; /* mode name */
} QUERY_MODE_TO_COS_MAPPING;
typedef struct mode_to_cos_mapping_data
{
AP_UINT16 overlay_size; /* size of returned entry */
unsigned char mode_name[8]; /* mode name */
unsigned char cos_name[8]; /* cos name */
unsigned char reserva[20]; /* reserved */
} MODE_TO_COS_MAPPING_DATA;
554