diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-04-02 15:10:29 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-04-02 15:11:48 -0500 |
commit | 2c466c8baf5948d72abce63683d70c0777a9e289 (patch) | |
tree | e8e5131462ee5ec2acb33c7e0dc55e9c101a0f30 /gatchat/ppp_lcp.c | |
parent | 3c39543cd6c0e3f08dac843cecb9cc7131283f0f (diff) | |
download | ofono-2c466c8baf5948d72abce63683d70c0777a9e289.tar.bz2 |
Refactor: Get rid of packet handler registrations
There are only about 4 protocols that the current ppp code handles and
it is doubtful that it will grow much more. There's no point in having
an extensive packet handler registration framework.
Diffstat (limited to 'gatchat/ppp_lcp.c')
-rw-r--r-- | gatchat/ppp_lcp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gatchat/ppp_lcp.c b/gatchat/ppp_lcp.c index 75ec6196..76c6759b 100644 --- a/gatchat/ppp_lcp.c +++ b/gatchat/ppp_lcp.c @@ -170,11 +170,6 @@ static const char *lcp_option_strings[256] = { [13] = "Callback", }; -struct ppp_packet_handler lcp_packet_handler = { - .proto = LCP_PROTOCOL, - .handler = pppcp_process_packet, -}; - struct pppcp_action lcp_action = { .this_layer_up = lcp_up, .this_layer_down = lcp_down, @@ -255,8 +250,5 @@ struct pppcp_data *lcp_new(GAtPPP *ppp) option->length = 6; pppcp_add_config_option(pppcp, option); - /* register packet handler for LCP protocol */ - lcp_packet_handler.priv = pppcp; - ppp_register_packet_handler(&lcp_packet_handler); return pppcp; } |