HP-UX SNAplus2 R7 NOF Programmer's Guide

NOF API Verbs
DEFINE_PORT
If def_data.port_type above is AP_NONSWITCHED, set this parameter to AP_PORT_LEASED.
For a switched line (def_data.port_type is AP_SWITCHED):
If the port is used for outgoing calls (inb_link_act_lim is zero), set this parameter to AP_PORT_SW_DIAL
(Dial-out capabilities).
If the port is used for incoming calls (out_link_act_lim is zero), set this parameter to
AP_PORT_SW_ANSWER (Answer capabilities).
If the switched lines dial-out or answer capabilities are manual, not automatic, combine the value above
(using a logical OR) with AP_PORT_SW_MAN.
max_xid_size
The maximum size of an XID that will be sent or received on this link. This eld is present to help minimize
buffer usage. A safe absolute maximum is 256 bytes.
max_retry_count
The maximum number of times that a frame or group of frames may be retransmitted on this port before a
problem is diagnosed. Usually set to about 5.
stub_spec_data_len
Length of the Stub specic data that follows. Set this to size of (STUB_SPEC_DATA).
stub_spec_data.opt1
HMOD port options ag 1. Set the appropriate bits of this eld as follows (bit 7 is the most signicant bit):
bit 7
4-wire connection (2 wire connection if not set).
bit 6
Use NRZI (NRZ if not set).
bit 5
Reserved (must be set to 0).
bit 4
Line is full-duplex (half-duplex if not set). This bit must be set if either pri_fdplx or sec_fdplx above
is set to AP_YES.
bit 3
Internal line speed clocking (external if not set). This option may be ignored if the underlying SDLC
hardware supports only external clocking.
bit 2
Use DMA to transfer data to and from the communications card (do not use DMA if not set).
bits 1, 0
Reserved (must be set to 0).
stub_spec_data.opt2
HMOD port options ag 2. Set the appropriate bits of this eld as follows (bit 7 is the most signicant bit):
bit 7
Use DSRS (do not use if not set)
bit 6
Select Standby On (Select Standby Off if not set)
242