HP-UX SNAplus2 NOF Programmer's Guide
NOF API Verbs (ACTIVATE_SESSION to OPEN_FILE)
DEFINE_COS
Chapter 3 177
unsigned char connect_cost; /* cost per connect time */
unsigned char byte_cost; /* cost per byte */
unsigned char reserve2; /* reserved */
unsigned char security; /* security */
unsigned char prop_delay; /* propagation delay */
unsigned char modem_class; /* reserved */
unsigned char user_def_parm_1; /* user defined parameter 1 */
unsigned char user_def_parm_2; /* user defined parameter 2 */
unsigned char user_def_parm_3; /* user defined parameter 3 */
} TG_DEFINED_CHARS;
typedef struct cos_node_row
{
COS_NODE_STATUS minimum; /* minimum */
COS_NODE_STATUS maximum; /* maximum */
unsigned char weight; /* weight */
unsigned char reserv1; /* reserved */
} COS_NODE_ROW;
typedef struct cos_node_status
{
unsigned char rar; /* route additional resistance*/
unsigned char status; /* node status */
unsigned char reserv1[2]; /* reserved */
} COS_NODE_STATUS;
Supplied Parameters
The application supplies the following parameters:
opcode
AP_DEFINE_COS
cos_name
Class of service name. This is an 8-byte alphanumeric
type-A EBCDIC string (starting with a letter), padded
on the right with EBCDIC spaces.
description
A null-terminated text string (0-31 characters followed
by a null character) describing the COS. This string is
for information only; it is stored in the node's
configuration file and returned on the QUERY_COS
verb, but SNAplus2 does not make any other use of it.