diff options
author | Ben Chan <benchan@chromium.org> | 2014-03-25 00:18:34 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-03-25 17:10:22 +0100 |
commit | a0ddcaa7a485580f3bcb88cff819f002a30fb4d0 (patch) | |
tree | 8692217fabd7ffc3d8df72b7bca3cb9bd9fcb54f /src | |
parent | c184c2f1be65fa0af966771fe2d6d0509bb057f3 (diff) |
bearer-mbim: update MTU in bearer IP config properties
This patch modifies MMBearerMbim to update the MTU value in the bearer
IPv4 and IPv6 config property when such information is available in the
MBIM_CID_IP_CONFIGURATION response.
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-bearer-mbim.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c index a15e80a3..83e363d3 100644 --- a/src/mm-bearer-mbim.c +++ b/src/mm-bearer-mbim.c @@ -342,6 +342,10 @@ ip_configuration_query_ready (MbimDevice *device, g_strfreev (strarr); } else mm_bearer_ip_config_set_method (ipv4_config, MM_BEARER_IP_METHOD_DHCP); + + /* MTU */ + if (ipv4configurationavailable & MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_MTU) + mm_bearer_ip_config_set_mtu (ipv4_config, ipv4mtu); } else ipv4_config = NULL; @@ -391,6 +395,10 @@ ip_configuration_query_ready (MbimDevice *device, g_strfreev (strarr); } else mm_bearer_ip_config_set_method (ipv6_config, MM_BEARER_IP_METHOD_DHCP); + + /* MTU */ + if (ipv6configurationavailable & MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_MTU) + mm_bearer_ip_config_set_mtu (ipv6_config, ipv6mtu); } else ipv6_config = NULL; |