summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_lcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/ppp_lcp.c')
-rw-r--r--gatchat/ppp_lcp.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gatchat/ppp_lcp.c b/gatchat/ppp_lcp.c
index 1ccc3cc6..9bfa4752 100644
--- a/gatchat/ppp_lcp.c
+++ b/gatchat/ppp_lcp.c
@@ -155,9 +155,27 @@ static void lcp_option_process(gpointer data, gpointer user)
static const char lcp_prefix[] = "lcp";
+static const char *lcp_option_strings[256] = {
+ [0] = "Vendor Specific",
+ [1] = "Maximum-Receive-Unit",
+ [2] = "Async-Control-Character-Map",
+ [3] = "Authentication-Protocol",
+ [4] = "Quality-Protocol",
+ [5] = "Magic-Number",
+ [6] = "Quality-Protocol (deprecated)",
+ [7] = "Protocol-Field-Compression",
+ [8] = "Address-and-Control-Field-Compression",
+ [9] = "FCS-Alternatives",
+ [10] = "Self-Describing-Pad",
+ [11] = "Numbered-Mode",
+ [12] = "Multi-Link-Procedure (deprecated)",
+ [13] = "Callback",
+};
+
static struct pppcp_protocol_data lcp_protocol_data = {
.proto = LCP_PROTOCOL,
.prefix = lcp_prefix,
+ .options = lcp_option_strings,
};
struct ppp_packet_handler lcp_packet_handler = {