NG_LMI(4)
πΈ NAME πΈ
okay so ng_lmi(4) β frame relay LMI protocol netgraph node type β is literally the main character of this Kernel Interfaces Manual page, and she is here to explain the frame relay LMI protocol netgraph node type to you bestie π
π¦ SYNOPSIS π¦
#include <sys/types.h>
#include <netgraph/ng_lmi.h>
π DESCRIPTION π
the lmi node type is out here doing the frame relay LMI protocol, no cap. it supports the ITU Annex A, ANSI Annex D, and Group-of-four LMI types, and it also supports auto-detection of the LMI type β¨
to enable a specific LMI type, connect the corresponding hook (annexA, annexD, or group4) to DLCI 0 or 1023 of a ng_frame_relay(4) node. typically, Annex A and Annex D live on DLCI 0 while Group-of-four lives on DLCI 1023 π
to enable LMI type auto-detection, connect the auto0 hook to DLCI 0 and the auto1023 hook to DLCI 1023. the node will attempt to automatically determine which LMI type is running at the switch, and go into that mode π¦
bestie, only one fixed LMI type, or auto-detection, can be active at any given time β pick a lane π
the NGM_LMI_GET_STATUS control message can be used at any time to query the current status of the LMI protocol and each DLCI channel. this node also supports the NGM_TEXT_STATUS control message π
π HOOKS π
this node type supports the following hooks:
annexAβ ITU Annex A LMI hook.annexDβ ANSI Annex D LMI hook.group4β Group-of-four LMI hook.auto0β Auto-detection hook for DLCI 0.auto1023β Auto-detection hook for DLCI 1023.
π CONTROL MESSAGES π
this node type supports the generic control messages, plus the following:
NGM_LMI_GET_STATUS
this command returns status information in a struct nglmistat:
#define NGM_LMI_STAT_ARYSIZE (1024/8)
struct nglmistat {
u_char proto[12]; /* Active proto (same as hook name) */
u_char hook[12]; /* Active hook */
u_char fixed; /* If set to fixed LMI mode */
u_char autod; /* If currently auto-detecting */
u_char seen[NGM_LMI_STAT_ARYSIZE]; /* DLCIs ever seen */
u_char up[NGM_LMI_STAT_ARYSIZE]; /* DLCIs currently up */
};
NGM_TEXT_STATUS
this generic message gives you a human-readable version of the node status π
π SHUTDOWN π
this node shuts down upon receipt of a NGM_SHUTDOWN control message, or when all hooks have been disconnected π«Ά
π SEE ALSO π
netgraph(4),ng_frame_relay(4),ngctl(8)- ANSI T1.617-1991 Annex D.
- ITU-T Q.933 Digital Subscriber Signaling System No. 1 - Signaling Specification for Frame Mode Basic Call Control, Annex A.
β HISTORY β
the ng_lmi node type was implemented in FreeBSD 4.0 π§
π AUTHORS π
Julian Elischer <julian@FreeBSD.org>
okay bye bestie β this NG_LMI(4) moment was brought to you by Debian, dated November 13, 2012 πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- Copyright (c) 1996-1999 Whistle Communications, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms