HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
QUERY_PORT
Detailed information.
Combine this value using a logical OR operation with one of the following values:
AP_FIRST_IN_LIST
Start at the rst entry in the list.
AP_LIST_INCLUSIVE
Start at the entry specied by the port_name parameter.
AP_LIST_FROM_NEXT
Start at the entry immediately following the entry specied by the port_name parameter.
For more information about how the list is ordered and how the application can obtain specic entries from
it, see Section 2.7, List Options For QUERY_* Verbs.
port_name
Name of port being queried. This is an 8-byte ASCII string, padded on the right with spaces if the name is
shorter than 8 bytes. This parameter is ignored if list_options is set to AP_FIRST_IN_LIST.
dlc_name
DLC name lter. To return information only on ports associated with a specic DLC, specify the DLC name.
This is an 8-byte ASCII string, padded on the right with spaces if the name is shorter than 8 bytes. To return
information about all ports without ltering on the DLC name, set this parameter to 8 binary zeros.
3.149.3 Returned Parameters: Successful Execution
If the verb executes successfully, SNAplus2 returns the following parameters:
primary_rc
AP_OK
buf_size
Length of the information returned in the supplied buffer.
total_buf_size
Returned value indicating the size of buffer that would have been required to return all the list information
requested. A value greater than buf_size indicates that not all the available entries were returned.
num_entries
Number of entries returned in the data buffer.
total_num_entries
Total number of entries available. A value greater than num_entries indicates that not all the available entries
were returned.
Each entry in the data buffer consists of the following parameters:
port_summary.overlay_size
The size of the returned
port_summary 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 nd each
port_summary 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_summary.port_name
611