-/* $OpenBSD: print-ppp.c,v 1.34 2020/01/24 22:46:37 procter Exp $ */
+/* $OpenBSD: print-ppp.c,v 1.35 2021/03/02 00:39:57 jsg Exp $ */
/*
* Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997
#define LCPOPT_PFC 7
#define LCPOPT_ACFC 8
-#define LCPOPT_MIN 0
-#define LCPOPT_MAX 24
-
static char *lcpconfopts[] = {
"Vendor-Ext",
"Max-Rx-Unit",
return (-1);
type = p[0];
- if (type <= LCPOPT_MAX)
+ if (type < nitems(lcpconfopts))
printf(" %s", lcpconfopts[type]);
else
printf(" unknown-lcp-%u", type);