[PATCH 3/3] bearer-mbim: update MTU in bearer IP config properties
Aleksander Morgado
aleksander at aleksander.es
Tue Mar 25 09:14:51 PDT 2014
On 25/03/14 08:18, Ben Chan wrote:
> 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.
> ---
Pushed, thanks.
> src/mm-bearer-mbim.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/src/mm-bearer-mbim.c b/src/mm-bearer-mbim.c
> index e9e51a7..c514468 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;
>
>
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list