summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_ipcp.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-04-02 15:10:29 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-04-02 15:11:48 -0500
commit2c466c8baf5948d72abce63683d70c0777a9e289 (patch)
treee8e5131462ee5ec2acb33c7e0dc55e9c101a0f30 /gatchat/ppp_ipcp.c
parent3c39543cd6c0e3f08dac843cecb9cc7131283f0f (diff)
downloadofono-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_ipcp.c')
-rw-r--r--gatchat/ppp_ipcp.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gatchat/ppp_ipcp.c b/gatchat/ppp_ipcp.c
index c9a902ea..394001e4 100644
--- a/gatchat/ppp_ipcp.c
+++ b/gatchat/ppp_ipcp.c
@@ -183,11 +183,6 @@ static const char *ipcp_option_strings[256] = {
[SECONDARY_NBNS_SERVER] = "Secondary NBNS Server Address",
};
-struct ppp_packet_handler ipcp_packet_handler = {
- .proto = IPCP_PROTO,
- .handler = pppcp_process_packet,
-};
-
struct pppcp_data *ipcp_new(GAtPPP *ppp)
{
struct ipcp_data *data;
@@ -223,9 +218,6 @@ struct pppcp_data *ipcp_new(GAtPPP *ppp)
ipcp_option->length= 6;
pppcp_add_config_option(pppcp, ipcp_option);
- /* register packet handler for IPCP protocol */
- ipcp_packet_handler.priv = pppcp;
- ppp_register_packet_handler(&ipcp_packet_handler);
return pppcp;
}