📄 lmi.7
字号:
by the SS7 Configuration Daemon \fBss7d\fR(8) when enabling an assembled orreconfigured SS7 protocol stack..TP.B LMI_ENABLE_REQRequests that the LMI provider enable itself for data transfer and protocoloperations. \fBLMI_ENABLE_REQ\fR is valid for both \fIStyle 1\fR and\fIStyle 2\fR LMI providers in the \fBLMI_DISABLED\fR state. The\fBLMI_ENABLE_REQ\fR uses the \fBlmi_enable_req_t\fR structure which containsonly the \fIlmi_primitive\fR which is set to \fBLMI_ENABLE_REQ\fR..TP.B LMI_ENABLE_CONReturned once the enable request is successful. For some \fIStyle 2\fR LMIproviders, this may take some time and is not necessarily returned inimmediate response to the enable request..TP.B LMI_ERROR_ACKReturned with the error number and explanation set if the enable requestfails..PP.B LMI_DISABLE_REQ, LMI_DISABLE_CON, LMI_ERROR_ACK.PPInvoked by the LMI user on a \fIStyle 1\fR or \fIStyle 2\fR LMI provider todisable the provider from further data transfer and protocol operations. Thisprimitive is normally used by the SS7 Configuration Daemon \fBss7d\fR(8) whendisabling an SS7 protocol stack for disassembly or reconfiguration..TP.B LMI_DISABLE_REQRequests that the LMI provider disable itself from further data transfer andprotocol operations. \fBLMI_DISABLE_REQ\fR is valid for both \fIStyle 1\fRand \fIStyle 2\fR LMI providers in the \fBLMI_ENABLED\fR state. The\fBLMI_DISABLE_REQ\fR uses the \fBlmi_disable_req_t\fR structure whichcontains only the \fIlmi_primitive\fR which is set to \fBLMI_DISABLE_REQ\fR..TP.B LMI_DISABLE_CONReturned once the disable request is successful. For some \fIStyle 2\fR LMIproviders, this may take some time and is not necessarily returned inimmediate response to the disable request..TP.B LMI_ERROR_ACKReturned with the error number and explanation set if the disable requestfails..SS "ERROR HANDLING".TP.B LMI_OK_ACKUpon success, the layer service provider will return a \fBLMI_OK_ACK\fR toconfirm a successful request. The provider may attach a \fBM_DATA\fR blockwhich contains a request-specific structure with the results of the request.This primitive uses the \fBsmi_ok_ack_t\fR structure as follows:.RS.sp.nftypedef struct { smi_ulong smi_primitive; /* LMI_OK_ACK */ smi_ulong smi_state; smi_ulong smi_correct_primitive;} smi_ok_ack_t;.fi.TP.I smi_stateContains the management state of the interface..TP.I smi_correct_primitiveContains the request primitive which this response is acknowledging..RE.TP.B LMI_ERROR_ACKUpon failure, the layer service provider will return a \fBLMI_ERROR_ACK\fR toreject the request due to an error. The provider may attach a \fBM_DATA\fRblock which contains a request-specific structure which indicates the elementsof the request which are in error. This primitive uses the\fBsmi_error_ack_t\fR structure as follows:.RS.sp.nftypedef struct { smi_ulong smi_primitive; /* LMI_ERROR_ACK */ smi_ulong smi_state; smi_ulong smi_error_primitive; smi_ulong smi_errno; smi_ulong smi_reason;} smi_error_ack_t;.fi.TP.I smi_stateContains the management state of the interface..TP.I smi_error_primitiveContains the request primitive which this response is acknowledging..TP.I smi_errnoThe error number indicating which error occured. This error numbercorresponds to the Unix \fIerrno\fR (see \fBstrerror\fR(2)) if applicable..TP.I smi_reasonAn additional error reason code..RE.TP.B ERRORSError numbers which are specific to a configuration request rejection are asfollows:.sp.RS.TStab(:);lb 2 l..THLMI_UNSPEC:Unknown or unspecifiedLMI_BADADDRESS:Address was invalidLMI_BADADDRTYPE:Invalid address typeLMI_BADDIAL:(not used)LMI_BADDIALTYPE:(not used)LMI_BADDISPOSAL:Invalid disposal parameterLMI_BADFRAME:Defective SDU receivedLMI_BADPPA:Invalid PPA identifierLMI_BADPRIM:Unregognized primitiveLMI_DISC:DisconnectedLMI_EVENT:Protocol-specific event ocurredLMI_FATALERR:Device has become unusableLMI_INITFAILED:Link initialization failedLMI_NOTSUPP:Primitive not supported by this deviceLMI_OUTSTATE:Primitive was issued from invalid stateLMI_PROTOSHORT:M_PROTO block too shortLMI_SYSERR:UNIX system errorLMI_WRITEFAIL:Unitdata request failedLMI_CRCERR:CRC or FCS errorLMI_DLE_EOT:DLE EOT detectedLMI_FORMAT:Format error detectedLMI_HDLC_ABORT:Aborted frame detectedLMI_OVERRUN:Input overrunLMI_TOOSHORT:Frame too shortLMI_INCOMPLETE:Partial frame receivedLMI_BUSY:Telephone was busyLMI_NOANSWER:Connection went unansweredLMI_CALLREJECT:Connection rejectedLMI_HDLC_IDLE:HDLC line went idleLMI_HDLC_NOTIDLE:HDLC link no longer idleLMI_QUIESCENT:Line being reassignedLMI_RESUMED:Line has been reassignedLMI_DSRTIMEOUT:Did not see DSR in timeLMI_LAN_COLLISIONS:LAN excessive collisionsLMI_LAN_REFUSED:LAN message refusedLMI_LAN_NOSTATION:LAN no such stationLMI_LOSTCTS:Lost Clear to Send signalLMI_DEVERR:Start of device-specific error codes.TE.RE.SH "INPUT OUTPUT CONTROL INTERFACE".PPAll device drivers or modules which provide a Local Management Interface (LMI)provide a set of IOCTLs which are used to configure and change thecharacteristics of the operation of the driver or module. Each driver ormodule named \fIxxx\fR provides IOCTLs of the form\fIxxx\fB_IOC\fIfunction\fR. For the particulars of datastructures andspecific control commands see the \fIxxx\fR man page (e.g, \fBsdli\fR(7))for the \fIxxx\fR protocol level driver.Controls which should be provided by all drivers are as follows:.TP\fIxxx\fB_IOCGOPTIONS, \fIxxx\fB_IOCSOPTIONSUsed to get or set the options associated with the protocol for a specificLMI driver. The two common fields for all protocol drivers and modules arecontained in the \fBlmi_option_t\fR structure as follows:.RS.sp.nftypedef struct lmi_option { lmi_ulong pvar; lmi_ulong popt;} lmi_option_t;.fi.TP.I pvarContains a protocol variant number which defaults to \fBSS7_PVAR_ITUT_88\fR.The protocol variant number is one of the following values:.RE.RS.IP.TStab(:);lb 2 l..THSS7_PVAR_ITUT_88:ITU-T 1988 (Blue Book)SS7_PVAR_ITUT_93:ITU-T 1993 (White Book)SS7_PVAR_ITUT_96:ITU-T 1996 (Grey Book)SS7_PVAR_ITUT_00:ITU-T 2000 (? Book)SS7_PVAR_ANSI_88:ANSI T1.111-1988SS7_PVAR_ANSI_92:ANSI T1.111-1992SS7_PVAR_ETSI_88:ETSI ETS 300 008 1988SS7_PVAR_ETSI_93:ETSI ETS 300 008 1993SS7_PVAR_ETSI_96:ETSI ETS 300 008 1996SS7_PVAR_ETSI_00:ETSI ETS 300 008 2000SS7_PVAR_JTTC_94:JTTC JQ.700-Series 1994.TE.RE.RS.TP.I poptContains a bit vector which contains a bitwise OR of the following flags.When the resepective bit is set it indicates that the option is in effect..RE.RS.IP.TStab(:);lb 2 l..THSS7_POPT_MPLEV:Multiple prio/cong levelsSS7_POPT_PCR:Preventative cyclic retransSS7_POPT_HSL:High speed linksSS7_POPT_XSN:Extended sequence numbersSS7_POPT_ALL:All options.TE.RE.RE.TP\fIxxx\fR\fB_IOCGCONFIG\fR, \fIxxx\fR\fB_IOCSCONFIG\fRUsed to get or set the configuration variables associated with the protocolfor a specific LMI driver or module. There are no common configurationfields. See the specific driver man page for details..TP\fIxxx\fR\fB_IOCTCONFIG\fR, \fIxxx\fR\fB_IOCCCONFIG\fRUsed to test and commit a configuration using SNMP setup/commit semantics fora specific LMI driver or module. There are no common configuration fields.See the specific driver man page for details..TP\fIxxx\fR\fB_IOCGSTATEM\fRGet state machine state variables, flags, timer-values and other protocolstate machine attributes for a particular protocol driver or module. Thereare no common state machine fields. See the specific driver man page fordetails..TP\fIxxx\fR\fB_IOCCMRESET\fRPerform a master reset on the state machine. This returns the state machineto Power-On conditions. This control returns the same information as a\fIxxx\fR\fB_IOCGSTATEM\fR call. There are no common state machine fields.See the specific driver man page for details..TP\fIxxx\fR\fB_IOCGSTATSP\fR, \fIxxx\fR\fB_IOCSSTATSP\fRUsed to get or set the statistics collection interval for the collection ofstatistics from the LMI driver or module. The three common fields form acommon header for all statistics period information and are contains in the\fBlmi_sta_t\fR structure as follows:.sp.RS.nftypedef struct lmi_sta { lmi_ulong object_id; /* object id for stats */ lmi_ulong colperiod; /* collection period */ lmi_ulong timestamp; /* timestamp end of period */} lmi_sta_t;.fi.TP.I object_idContains the object id of the statistics..TP.I colperiodContains the collection period which is being set for specified statistics.The collection period is in jiffies (1/HZ seconds) and indicates theaggregation period for specified statistics..TP.I timestampContains a timestamp (secconds since epoch) which indicates the time boundaryat which at least on collection period occured in the past. This value can beused to determine the system clock time at which the next collection intervalis to occur..RE.TP\fIxxx\fR\fB_IOCGSTATS\fR, \fIxxx\fR\fB_IOCSSTATS\fRGets or sets statistics which have been collected for the LMI driver or modulein the current (or just previous but not notified) collection interval. Thecommon field of all statistics structures is the \fIheader\fR field whichcontains the timestamp of the collection interval for which the currentstatistics apply..TP\fIxxx\fR\fB_IOCGNOTIFY\fR, \fIxxx\fR\fB_IOCSNOTIFY\fR, \fIxxx\fR\fB_IOCCNOTIFY\fRGets, sets or clears notifications from the LMI driver or module. There areno common notification fileds. See the specific driver man page for moredetails..\" .SH "CONFIGURATION".\" .SH "ERROR HANDLING".SH "SEE ALSO".BR isupi (7),.BR mtpi (7),.BR sccpi (7),.BR sdli (7),.BR sdti (7),.BR sli (7),.BR slsi (7),.BR tcapi (7),.BR acb56l (8),.BR acb56t (8),.BR isup (8),.BR iua (8),.BR m2pa (8),.BR m2tp (8),.BR m2ua (8),.BR m3pa (8),.BR m3tp (8),.BR m3ua (8),.BR mtp (8),.BR sccp (8),.BR sdl_eth (8),.BR sdl_ip (8),.BR sdl_rtp (8),.BR sdl_sctp (8),.BR sdl_tcp (8),.BR sdl_udp (8),.BR sdt (8),.BR sl (8),.BR sls (8),.BR soip (8),.BR ss7d (8),.BR sua (8),.BR tcap (8),.BR vsdt (8),.BR vsl (8),.BR vsls (8).SH "BUGS"Too many to mention..SH "AUTHOR".PPBrian F. G. Bidulock,.IR "" < bidulock@openss7.org >..SH "HISTORY"This STREAMS interface for SS7 is an orignal part of the \fIOpenSS7\fRpackage..SH "REFERENCES".PP.TStab(:);l 1 li..TH[Q702]:ITU-T Rec. Q.702 Signalling Data Link[Q703]:ITU-T Rec. Q.703 Signalling Link[Q704]:ITU-T Rec. Q.704 Message Transfer Part[Q711]:ITU-T Rec. Q.711 Signalling Connection Control Part[Q767]:ITU-T Rec. Q.767 ISDN User Part[Q77?]:ITU-T Rec. Q.77? Transaction Capabilities Appl. Part.TE.SH COPYRIGHT NOTICE.spCopyright \(co 1997-2001 Brian Bidulock. All Rights Reserved.Permission is granted to make and distribute verbatim copies of thismanual provided the copyright notice and this permission notice arepreserved on all copies.Permission is granted to copy and distribute modified versions of thismanual under the conditions for verbatim copying, provided that theentire resulting derived work is distributed under the terms of apermission notice identical to this oneSince the Linux kernel and libraries are constantly changing, thismanual page may be incorrect or out-of-date. The author(s) assume noresponsibility for errors or omissions, or for damages resulting fromthe use of the information contained herein. The author(s) may nothave taken the same level of care in the production of this manual,which is licensed free of charge, as they might when workingprofessionally.Formatted or processed versions of this manual, if unaccompanied bythe source, must acknowledge the copyright and authors of this work.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -