HP-UX SNAplus2 NOF Programmer's Guide

NOF API Verbs (ACTIVATE_SESSION to OPEN_FILE)
DEFINE_PORT
Chapter 3 347
Data for all DLC types:
typedef struct v0_mux_info
{
AP_UINT16 dlc_type; /* DLC implementation type */
unsigned char need_vrfy_fixup; /* reserved */
unsigned char num_mux_ids; /* reserved */
AP_UINT32 card_type; /* reserved */
AP_UINT32 adapter_number; /* reserved */
AP_UINT32 oem_data_length; /* reserved */
int mux_ids[5]; /* reserved */
} V0_MUX_INFO;
For Token Ring, Ethernet, or FDDI, the
address
parameter in the
link_address structure is replaced by the following:
typedef struct tr_address
{
unsigned char mac_address[6]; /* reserved */
unsigned char lsap_address; /* local SAP address */
} TR_ADDRESS;
Supplied Parameters
The application supplies the following parameters:
opcode
AP_DEFINE_PORT
port_name
Name of port being defined. This is an 8-byte ASCII
string, using any locally displayable characters, padded
on the right with spaces if the name is shorter than 8
bytes.
def_data.description
A null-terminated text string (0-31 characters followed
by a null character) describing the port. This string is
for information only; it is stored in the node's
configuration file and returned on the QUERY_PORT
verb, but SNAplus2 does not make any other use of it.
def_data.initially_active