HP-UX SNAplus2 R7 NOF Programmer's Guide
NOF API Verbs
STOP_PORT
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
unsigned char stop_type; /* Stop Type */
unsigned char port_name[8]; /* name of port */
} STOP_PORT;
3.192.2 Supplied Parameters
The application supplies the following parameters:
opcode
AP_STOP_PORT
stop_type
Type of stop processing required. Possible values are:
AP_ORDERLY_STOP
SNAplus2 will perform cleanup operations before stopping the port.
AP_IMMEDIATE_STOP
SNAplus2 will stop the port immediately.
port_name
Name of port to be stopped. This is an 8-byte ASCII string, padded on the right with spaces if the name is
shorter than 8 bytes.
3.192.3 Returned Parameters: Successful Execution
If the verb executes successfully, SNAplus2 returns the following parameters:
primary_rc
AP_OK
3.192.4 Returned Parameters: Parameter Check
If the verb does not execute because of a parameter error, SNAplus2 returns the following parameters:
primary_rc
AP_PARAMETER_CHECK
secondary_rc
Possible values are:
AP_INVALID_PORT_NAME
The port_name parameter did not match the name of a defined port.
AP_UNRECOGNIZED_DEACT_TYPE
The stop_type parameter was not set to a valid value.
Appendix B, Common Return Codes lists further secondary return codes associated with
AP_PARAMETER_CHECK,
which are common to all NOF verbs.
748