diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-04-05 11:12:43 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-04-05 11:12:43 -0700 |
commit | 331fcaea32627b58882e36752068cb25987a22fe (patch) | |
tree | 9e9f09ec1d173f5eff7d05e45c22d6a60a77a290 /gatchat/ppp_lcp.c | |
parent | 12ffb2c772fd35af4a18d3b8d1ef39a0c3895ec1 (diff) | |
download | ofono-331fcaea32627b58882e36752068cb25987a22fe.tar.bz2 |
Make pppcp_code enum a private structure
Diffstat (limited to 'gatchat/ppp_lcp.c')
-rw-r--r-- | gatchat/ppp_lcp.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/gatchat/ppp_lcp.c b/gatchat/ppp_lcp.c index 8ea6e56a..6460f336 100644 --- a/gatchat/ppp_lcp.c +++ b/gatchat/ppp_lcp.c @@ -46,18 +46,6 @@ enum lcp_options { ACFC = 8, }; -#define LCP_SUPPORTED_CODES ((1 << CONFIGURE_REQUEST) | \ - (1 << CONFIGURE_ACK) | \ - (1 << CONFIGURE_NAK) | \ - (1 << CONFIGURE_REJECT) | \ - (1 << TERMINATE_REQUEST) | \ - (1 << TERMINATE_ACK) | \ - (1 << CODE_REJECT) | \ - (1 << PROTOCOL_REJECT) | \ - (1 << ECHO_REQUEST) | \ - (1 << ECHO_REPLY) | \ - (1 << DISCARD_REQUEST)) - /* * signal the Up event to the NCP */ @@ -223,14 +211,13 @@ struct pppcp_data *lcp_new(GAtPPP *ppp) { struct pppcp_data *pppcp; struct ppp_option *option; - guint16 codes = LCP_SUPPORTED_CODES; pppcp = pppcp_new(ppp, LCP_PROTOCOL); if (!pppcp) { g_print("Failed to allocate PPPCP struct\n"); return NULL; } - pppcp_set_valid_codes(pppcp, codes); + pppcp->option_strings = lcp_option_strings; pppcp->prefix = "lcp"; pppcp->priv = pppcp; |