HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
QUERY_DOWNSTREAM_PU
unsigned char pu_sscp_sess_active; /* Is the PU-SSCP session active */
unsigned char dspu_services; /* DSPU service type */
SESSION_STATS pu_sscp_stats; /* SSCP-PU session statistics */
unsigned char reserva[20]; /* reserved */
} DOWNSTREAM_PU_DATA;
typedef struct session_stats
{
AP_UINT16 rcv_ru_size; /* session receive RU size */
AP_UINT16 send_ru_size; /* session send RU size */
AP_UINT16 max_send_btu_size; /* maximum send BTU size */
AP_UINT16 max_rcv_btu_size; /* maximum rcv BTU size */
AP_UINT16 max_send_pac_win; /* maximum send pacing window size */
AP_UINT16 cur_send_pac_win; /* current send pacing window size */
AP_UINT16 max_rcv_pac_win; /* maximum receive pacing window */
/* size */
AP_UINT16 cur_rcv_pac_win; /* current receive pacing window */
/* size */
AP_UINT32 send_data_frames; /* number of data frames sent */
AP_UINT32 send_fmd_data_frames; /* num fmd data frames sent */
AP_UINT32 send_data_bytes; /* number of data bytes sent */
AP_UINT32 rcv_data_frames; /* number of data frames received */
AP_UINT32 rcv_fmd_data_frames; /* num fmd data frames received */
AP_UINT32 rcv_data_bytes; /* number of data bytes received */
unsigned char sidh; /* session ID high byte (from LFSID)*/
unsigned char sidl; /* session ID low byte (from LFSID) */
unsigned char odai; /* ODAI bit set */
unsigned char ls_name[8]; /* Link station name */
unsigned char pacing_type; /* type of pacing in use */
} SESSION_STATS;
3.118.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_QUERY_DOWNSTREAM_PU
buf_ptr
A pointer to a data buffer that SNAplus2 will use to return the requested information.
buf_size
Size of the supplied data buffer.
num_entries
Maximum number of downstream PUs for which data should be returned. To request data for a specicPU
rather than a range, specify the value 1. To return as many entries as possible, specify zero; in this case,
SNAplus2 will return the maximum number of entries that can be accommodated in the supplied data buffer.
list_options
The position in the list from which SNAplus2 should begin to return data. Possible values are:
AP_FIRST_IN_LIST
Start at the rst entry in the list.
AP_LIST_INCLUSIVE
Start at the entry specied by the dspu_name parameter.
442