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_net.c | |
parent | f081de4ea6e3a8d0f96ba6097de462bb7a29c0ac (diff) | |
download | ofono-eb9e7872a9c7931478b8b14b33ecc7303d163dcc.tar.bz2 |
Add debugging for PPP LCP and IPCP options
Diffstat (limited to 'gatchat/ppp_net.c')
-rw-r--r-- | gatchat/ppp_net.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gatchat/ppp_net.c b/gatchat/ppp_net.c index b92a35b4..09f7a1e2 100644 --- a/gatchat/ppp_net.c +++ b/gatchat/ppp_net.c @@ -273,6 +273,17 @@ static void ipcp_finished(struct pppcp_data *data) static const char ipcp_prefix[] = "ipcp"; +static const char *ipcp_option_strings[256] = { + [1] = "IP-Address (deprecated)", + [2] = "IP-Compression-Protocol", + [3] = "IP-Address", + [4] = "Mobile-IPv4", + [129] = "Primary DNS Server Address", + [130] = "Primary NBNS Server Address", + [131] = "Secondary DNS Server Address", + [132] = "Secondary NBNS Server Address", +}; + struct pppcp_action ipcp_action = { .this_layer_up = ipcp_up, .this_layer_down = ipcp_down, @@ -285,6 +296,7 @@ struct pppcp_action ipcp_action = { static struct pppcp_protocol_data ipcp_protocol_data = { .proto = IPCP_PROTO, .prefix = ipcp_prefix, + .options = ipcp_option_strings, }; struct ppp_packet_handler ipcp_packet_handler = { |