aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:27 +0000
commita11819ca1f9b7b0352aef023ca0cfb52cfb8639b (patch)
treef3050242da934f033f4c98cda1cf7b40bce3e344 /sys/netgraph
parent497c2cf4f84d29c5e102544ff31e991f551e5f8c (diff)
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_lmi.c4
1 files changed, 4 insertions, 0 deletions
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,