HP-UX SNAplus2 NOF Programmer's Guide

NOF Indications
LS_INDICATION
Chapter 61146
LS_INDICATION
This indication is generated when a link station is activated or
deactivated. When the link station is deactivated, the returned data
includes statistics on the link station's usage.
VCB Structure
typedef struct ls_indication
{
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 data_lost; /* previous indication lost */
unsigned char deactivated; /* has LS been deactivated? */
unsigned char ls_name[8]; /* link station name */
unsigned char description[32]; /* resource description */
unsigned char reserv1[16]; /* reserved */
unsigned char adj_cp_name[17]; /* network qualified Adjacent CP name*/
unsigned char adj_node_type; /* adjacent node type */
AP_UINT16 act_sess_count; /* active session count on link */
unsigned char indication_cause; /* cause of indication */
LS_STATS ls_stats; /* link station statistics */
unsigned char tg_num; /* tg number */
AP_UINT32 sense_data; /* sense data */
unsigned char reserva[19]; /* reserved */
} LS_INDICATION;
typedef struct ls_stats
{
AP_UINT32 in_xid_bytes; /* number of XID bytes received */
AP_UINT32 in_msg_bytes; /* number of message bytes received */
AP_UINT32 in_xid_frames; /* number of XID frames received */
AP_UINT32 in_msg_frames; /* number of message frames received*/
AP_UINT32 out_xid_bytes; /* number of XID bytes sent */
AP_UINT32 out_msg_bytes; /* number of message bytes sent */
AP_UINT32 out_xid_frames; /* number of XID frames sent */
AP_UINT32 out_msg_frames; /* number of message frames sent */
AP_UINT32 in_invalid_sna_frames; /* number of invalid */
/* frames received */
AP_UINT32 in_session_control_frames; /* number of control */
/* frames received */
AP_UINT32 out_session_control_frames; /* number of control */
/* frames sent */