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.
This commit is contained in:
Dan Williams
2013-06-24 22:04:32 -05:00
parent 3206e95663
commit 597401f80a
+1
View File
@@ -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;