git: a11819ca1f9b - main - ng_lmi: Move all of highest_dlci under #if 0.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Apr 2022 00:03:20 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=a11819ca1f9b7b0352aef023ca0cfb52cfb8639b
commit a11819ca1f9b7b0352aef023ca0cfb52cfb8639b
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-08 00:01:27 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-08 00:01:27 +0000
ng_lmi: Move all of highest_dlci under #if 0.
---
sys/netgraph/ng_lmi.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sys/netgraph/ng_lmi.c b/sys/netgraph/ng_lmi.c
index 024bc47eb725..ebf8ad70bbef 100644
--- a/sys/netgraph/ng_lmi.c
+++ b/sys/netgraph/ng_lmi.c
@@ -742,7 +742,9 @@ nglmi_checkdata(hook_p hook, struct mbuf *m)
u_char nextbyte;
int seq_seen = 0;
int resptype_seen = 0; /* 0 , 1 (partial) or 2 (full) */
+#if 0
int highest_dlci = 0;
+#endif
packetlen = m->m_len;
data = mtod(m, const u_char *);
@@ -959,7 +961,9 @@ nglmi_checkdata(hook_p hook, struct mbuf *m)
log(LOG_WARNING, "nglmi: DLCI out of range\n");
goto reject;
}
+#if 0
highest_dlci = dlci;
+#endif
break;
default:
log(LOG_WARNING,