HP-UX SNAplus2 R7 NOF Programmer's Guide
NOF API Verbs
QUERY_PORT
Name of the port. This is an 8-byte ASCII string, padded on the right with spaces if the name is shorter than
8 bytes.
port_summary.description
A null-terminated text string describing the port, as specified in the definition of the port.
port_summary.port_state
Specifies the current state of the port. Possible values are:
AP_ACTIVE
The port is active.
AP_NOT_ACTIVE
The port is not active.
AP_PENDING_ACTIVE
START_PORT is in progress.
AP_PENDING_INACTIVE
STOP_PORT is in progress.
port_summary.dlc_name
Name of the DLC associated with this port. This is an 8-byte ASCII string, padded on the right with spaces
if the name is shorter than 8 bytes.
port_detail.overlay_size
The size of the returned
port_detail structure, and therefore the offset to the start of the next entry in the data
buffer.
When your application needs to go through the returned buffer to find each
port_detail structure in turn, it must
use this value to move to the correct offset for the next data structure, and must not use the C
sizeof()
operator. This is because the size of the returned overlay may increase in future releases of SNAplus2; using
the returned overlay size ensures that your application will continue to work with future releases.
port_detail.port_name
Name of the port. This is an 8-byte ASCII string, padded on the right with spaces if the name is shorter than
8 bytes.
port_detail.det_data.port_state
Specifies the current state of the port. Possible values are:
AP_ACTIVE
The port is active.
AP_NOT_ACTIVE
The port is not active.
AP_PENDING_ACTIVE
START_PORT is in progress.
AP_PENDING_INACTIVE
STOP_PORT is in progress.
port_detail.det_data.dlc_type
DLC type for the port. This is one of the following:
AP_SDLC
SDLC
612