diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-04-01 00:07:40 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-04-01 00:07:40 -0700 |
commit | eb9e7872a9c7931478b8b14b33ecc7303d163dcc (patch) | |
tree | 01cfe9c237cb0e086b7d6749de191157305d48ce /gatchat/ppp_lcp.c | |
parent | f081de4ea6e3a8d0f96ba6097de462bb7a29c0ac (diff) | |
download | ofono-eb9e7872a9c7931478b8b14b33ecc7303d163dcc.tar.bz2 |
Add debugging for PPP LCP and IPCP options
Diffstat (limited to 'gatchat/ppp_lcp.c')
-rw-r--r-- | gatchat/ppp_lcp.c | 18 |
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 = { |