diff options
author | Ben Chan <benchan@chromium.org> | 2013-04-22 14:34:44 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-04-23 15:25:48 +0200 |
commit | 4ac3a6d4f212b3fc04e004c85b89fd567e865ffa (patch) | |
tree | 50f2f6eeb7f390d0d7abf8dea430fbb8b28a4f92 /libmm-glib/mm-bearer-properties.c | |
parent | 60845f10c9dae6c7e53022050aa8d09e1e1354ea (diff) |
bearer: allow specifying default IP family for bearers
This patch adds a 'bearer-default-ip-family' property to MMBearer, which
specifies the default IP family to use for a bearer when no explicit
value is given via the simple connect properties. The default IP family
is set to IPv4 in MMBearer but can be overridden by a MMBearer subclass,
which allows a modem plugin to specify an appropriate default value.
Diffstat (limited to 'libmm-glib/mm-bearer-properties.c')
-rw-r--r-- | libmm-glib/mm-bearer-properties.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libmm-glib/mm-bearer-properties.c b/libmm-glib/mm-bearer-properties.c index 6526ed06..2f59feed 100644 --- a/libmm-glib/mm-bearer-properties.c +++ b/libmm-glib/mm-bearer-properties.c @@ -674,13 +674,7 @@ mm_bearer_properties_init (MMBearerProperties *self) self->priv->allow_roaming = TRUE; self->priv->rm_protocol = MM_MODEM_CDMA_RM_PROTOCOL_UNKNOWN; self->priv->allowed_auth = MM_BEARER_ALLOWED_AUTH_UNKNOWN; - - /* At some point in the future, this default should probably be changed - * to IPV4V6. However, presently support for this PDP type is rare. An - * even better approach would likely be to query which PDP types the - * modem supports (using AT+CGDCONT=?), and set the default accordingly - */ - self->priv->ip_type = MM_BEARER_IP_FAMILY_IPV4; + self->priv->ip_type = MM_BEARER_IP_FAMILY_UNKNOWN; } static void |