diff options
author | Dan Williams <dcbw@redhat.com> | 2013-06-24 22:04:32 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2013-06-24 22:04:32 -0500 |
commit | 597401f80aa42eb17e3ae358e3ab629b0982f2ab (patch) | |
tree | 7c4b6a9d42f77f083a6664a3925b5c502ebd721a | |
parent | 3206e9566392e8a9678bbd49e0de9bb21ed75291 (diff) |
broadband-bearer-hso: IPv4 prefix is always /32
The modem doesn't give us a prefix in the OWANDATA response, but it's
always /32. This didn't get set previously because NetworkManager
always just used /32 for the 'static' configuration, but NM isn't the
only user of MM, and only MM knows for sure that the prefix should
be /32.
-rw-r--r-- | plugins/option/mm-broadband-bearer-hso.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/option/mm-broadband-bearer-hso.c b/plugins/option/mm-broadband-bearer-hso.c index 1830bb2f..7da13aa9 100644 --- a/plugins/option/mm-broadband-bearer-hso.c +++ b/plugins/option/mm-broadband-bearer-hso.c @@ -143,6 +143,7 @@ ip_config_ready (MMBaseModem *modem, ip_config = mm_bearer_ip_config_new (); mm_bearer_ip_config_set_method (ip_config, MM_BEARER_IP_METHOD_STATIC); mm_bearer_ip_config_set_address (ip_config, items[i]); + mm_bearer_ip_config_set_prefix (ip_config, 32); } else if (i == 3 || i == 4) { /* DNS entries */ guint32 tmp; |