HP-UX SNAplus2 NOF Programmer's Guide
NOF API Verbs (QUERY Verbs)
QUERY_STATISTICS
Chapter 4 945
AP_UINT16 role; /* current role of link station */
unsigned char name[8]; /* reserved */
AP_UINT16 state; /* operational state of LS */
AP_UINT16 maxdata; /* current max PDU size for logical link */
AP_UINT32 replyto; /* current reply timeout */
AP_UINT32 maxin; /* current max unack'd frames LS can receive*/
AP_UINT32 maxout; /* current max unack'd frames LS can send */
unsigned char modulo; /* sequence number modulus */
unsigned char reserv2[3]; /* reserved */
AP_UINT32 retries_m; /* number of retries in a retry sequence */
AP_UINT32 retries_t; /* interval between retry sequences */
AP_UINT32 retries_n; /* number of times to repeat retry sequence */
AP_UINT32 rnrlimit; /* how long adjacent LS can be in RNR state */
/* before it is considered inoperative */
unsigned char datmode; /* communications mode with adjacent LS */
unsigned char last_fail_cause; /* reserved */
unsigned char last_fail_ctrl_in[2]; /* control field of last frame rcvd*/
/* before last failure */
unsigned char last_fail_ctrl_out[2]; /* control field of last frame sent*/
/* before last failure */
unsigned char last_fail_frmr_info[5]; /* info field of FRMR frame if */
/* last failure was caused by */
/* invalid frame */
unsigned char sdoppad1; /* reserved */
AP_UINT32 last_fail_replyto_s; /* number of REPLYTO timeouts at */
/* time of last failure */
unsigned char g_poll; /* group poll address */
unsigned char sim_rim; /* are SIM / RIM supported? */
unsigned char xmit_rcv_cap; /* transmit / receive capability */
} SDL_LS_OPER_TABLE;
Port statistics for SDLC:
typedef struct sdl_port_stats_table
{
V0_MUX_INFO mux_info; /* streams config info */
AP_UINT32 index; /* index of port */
AP_UINT32 dwarf_frames; /* frames received too short to be valid */
AP_UINT32 polls_out; /* polls sent to adjacent link stations */
AP_UINT32 poll_rsps_out; /* polls responded to by adjacent link stns*/
AP_UINT32 local_busies; /* number of times local link station */
/* has entered busy state (RNR) */
AP_UINT32 remote_busies; /* number of times remote link stations */
/* have entered busy state (RNR) */
AP_UINT32 iframes_in; /* I-frames rcvd from adjacent link */
/* stations */
AP_UINT32 iframes_out; /* I-frames sent to adjacent link stations */
AP_UINT32 octets_in; /* bytes received from adjacent link */
/* stations */
AP_UINT32 octets_out; /* bytes sent to adjacent link stations */