diff options
author | Zhenhua Zhang <zhenhua.zhang@intel.com> | 2010-06-25 11:19:05 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-28 10:17:58 -0500 |
commit | 588db023541fda0b61c162c0a5a2e624bc404bf3 (patch) | |
tree | ea883d8e00e77c14d73f7b27c18a7bc908e6cbed /gatchat/ppp.h | |
parent | ca41d63a305c0761c25b52fe0af45387db478680 (diff) | |
download | ofono-588db023541fda0b61c162c0a5a2e624bc404bf3.tar.gz |
gatppp: Add PPP server extension
1. Add interface to set PPP server info by g_at_ppp_set_server_info.
2. Pass local and peer address through IPCP handshaking.
Diffstat (limited to 'gatchat/ppp.h')
-rw-r--r-- | gatchat/ppp.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gatchat/ppp.h b/gatchat/ppp.h index b6c5f4aa..c41cd7f6 100644 --- a/gatchat/ppp.h +++ b/gatchat/ppp.h @@ -86,6 +86,9 @@ void lcp_protocol_reject(struct pppcp_data *lcp, guint8 *packet, gsize len); /* IPCP related functions */ struct pppcp_data *ipcp_new(GAtPPP *ppp); void ipcp_free(struct pppcp_data *data); +void ipcp_set_server_info(struct pppcp_data *ipcp, guint32 local_addr, + guint32 peer_addr, + guint32 dns1, guint32 dns2); /* CHAP related functions */ struct ppp_chap *ppp_chap_new(GAtPPP *ppp, guint8 method); @@ -104,7 +107,7 @@ void ppp_debug(GAtPPP *ppp, const char *str); void ppp_transmit(GAtPPP *ppp, guint8 *packet, guint infolen); void ppp_set_auth(GAtPPP *ppp, const guint8 *auth_data); void ppp_auth_notify(GAtPPP *ppp, gboolean success); -void ppp_ipcp_up_notify(GAtPPP *ppp, const char *ip, +void ppp_ipcp_up_notify(GAtPPP *ppp, const char *local, const char *peer, const char *dns1, const char *dns2); void ppp_ipcp_down_notify(GAtPPP *ppp); void ppp_ipcp_finished_notify(GAtPPP *ppp); |