The following parameter block starts a link station (LS) on a particular SAP as a caller or listener:
#define DLC_MAX_DIAG 16 /* the maximum string of chars */ /* in the diag name */
struct dlc_sls_arg {
ulong_t gdlc_ls_corr; /* GDLC User link station correlator */ u_char_t ls_diag[DLC_MAX_DIAG]; /* the char name of the ls */ ulong_t gdlc_sap_corr; /* GDLC SAP correlator */ ulong_t user_ls_corr; /* User's SAP correlator */ ulong_t flags; /* Start Link Station flags */ ulong_t trace_chan; /* Trace Channel (rc of trcstart)*/ ulong_t len_raddr_name; /* Length of the remote name/addr*/ u_char_t raddr_name[DLC_MAX_NAME]; /* The Remote addr/name */
ulong_t maxif; /* Maximum number of bytes in an */ /* I-field */ ulong_t rcv_wind; /* Maximum size of receive window */ ulong_t xmit_wind; /* Maximum size of transmit window */ u_char_t rsap; /* Remote SAP value */ u_char_t rsap_low; /* Remote SAP low range value */ u_char_t rsap_high; /* Remote SAP high range value */ u_char_t res1; /* Reserved */
ulong_t max_repoll; /* Maximum Repoll count */ ulong_t repoll_time; /* Repoll timeout value */ ulong_t ack_time; /* Time to delay trans of an ack */ ulong_t inact_time; /* Time before inactivity times out */ ulong_t force_time; /* Time before a forced disconnect */ };
The fields of this ioctl operation are:
flags | Contains common LS flags. The following flags are supported:
|
The protocol-specific data area allows parameters to be defined by a specific GDLC device manager, such as Token-Ring dynamic window increment or SDLC primary slow poll. This optional data area must directly follow (or append to) the end of the dlc_sls_arg structure.
The DLC_START_LS ioctl operation is selectable through the fp_ioctl kernel service or the ioctl subroutine. It can be called from the process environment only.