summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp_lcp.c
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_lcp.c
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_lcp.c')
-rw-r--r--gatchat/ppp_lcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gatchat/ppp_lcp.c b/gatchat/ppp_lcp.c
index 5cf5656a..8639c6c7 100644
--- a/gatchat/ppp_lcp.c
+++ b/gatchat/ppp_lcp.c
@@ -197,6 +197,7 @@ static enum rcr_result lcp_rcr(struct pppcp_data *pppcp,
case ACCM:
case PFC:
case ACFC:
+ case MRU:
break;
case MAGIC_NUMBER:
@@ -226,6 +227,9 @@ static enum rcr_result lcp_rcr(struct pppcp_data *pppcp,
case AUTH_PROTO:
ppp_set_auth(ppp, ppp_option_iter_get_data(&iter));
break;
+ case MRU:
+ ppp_set_mtu(ppp, ppp_option_iter_get_data(&iter));
+ break;
case MAGIC_NUMBER:
case PFC:
case ACFC: