HP-UX SNAplus2 NOF Programmer's Guide
NOF API Verbs (ACTIVATE_SESSION to OPEN_FILE)
DEFINE_PORT
Chapter 3342
DEFINE_PORT
DEFINE_PORT is used to define a new port or modify an existing one.
Before issuing this verb, you must issue the DEFINE_DLC verb to define
the DLC that this port uses.
You can modify an existing port only if it is not started. You cannot
change the DLC used by an existing port; the
dlc_name
specified when
modifying an existing port must match the DLC that was specified on the
initial definition of the port.
If you are defining a port that will accept incoming calls, see “Incoming
Calls”.
VCB Structure
typedef struct define_port
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
unsigned char port_name[8]; /* name of port */
PORT_DEF_DATA def_data; /* port defined data */
} DEFINE_PORT;
typedef struct port_def_data
unsigned char description[32]; /* resource description */
unsigned char initially_active; /* is the port initially active? */
unsigned char reserv2[15]; /* reserved */
unsigned char dlc_name[8]; /* DLC name associated with port */
unsigned char port_type; /* port type */
unsigned char port_attributes[4]; /* port attributes */
unsigned char reserv3[3]; /* reserved */
AP_UINT32 port_number; /* port number */
AP_UINT16 max_rcv_btu_size; /* max receive BTU size */
AP_UINT16 tot_link_act_lim; /* total link activation limit */
AP_UINT16 inb_link_act_lim; /* inbound link activation limit */
AP_UINT16 out_link_act_lim; /* outbound link activation limit */
unsigned char ls_role; /* initial link station role */
unsigned char reserv1[15]; /* reserved */
unsigned char implicit_dspu_template[8]; /*implicit_dspu_template */
AP_UINT16 implicit_ls_limit; /* implicit ls limit */
unsigned char reserv4; /* reserved */
unsigned char implicit_dspu_services; /* implicit DSPU support */