summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp.h
diff options
context:
space:
mode:
authorKristen Carlson Accardi <kristen@linux.intel.com>2010-04-21 15:26:30 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-04-22 07:00:40 +0200
commit71775550fe412f1c300cae093fc5a85ac5afdba9 (patch)
tree7899bc7b9fcef9fbaba8d615d0928c042fdd7bfb /gatchat/ppp.h
parente1daf206518c049927585d718f59e9a74c4a66c8 (diff)
downloadofono-71775550fe412f1c300cae093fc5a85ac5afdba9.tar.bz2
ppp: implement MRU option
If the peer requests a MRU option, set the mtu for the network phase. When we are in link establishment phase, we should continue to behave as if no option has been set and the peer should use the default MRU. This option is required for the Huawei E160G modem.
Diffstat (limited to 'gatchat/ppp.h')
-rw-r--r--gatchat/ppp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gatchat/ppp.h b/gatchat/ppp.h
index a8a04867..07483a91 100644
--- a/gatchat/ppp.h
+++ b/gatchat/ppp.h
@@ -103,6 +103,7 @@ struct ppp_net *ppp_net_new(GAtPPP *ppp);
const char *ppp_net_get_interface(struct ppp_net *net);
void ppp_net_process_packet(struct ppp_net *net, guint8 *packet);
void ppp_net_free(struct ppp_net *net);
+void ppp_net_set_mtu(struct ppp_net *net, guint16 mtu);
/* PPP functions related to main GAtPPP object */
void ppp_debug(GAtPPP *ppp, const char *str);
@@ -115,3 +116,4 @@ void ppp_net_up_notify(GAtPPP *ppp, const char *ip,
void ppp_net_down_notify(GAtPPP *ppp);
void ppp_set_recv_accm(GAtPPP *ppp, guint32 accm);
void ppp_set_xmit_accm(GAtPPP *ppp, guint32 accm);
+void ppp_set_mtu(GAtPPP *ppp, const guint8 *data);