mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 10:20:11 +01:00
merge: branch 'ungateway-ofono'
wwan/ofono: handle missing default gateway https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1731
This commit is contained in:
commit
9820e791d1
1 changed files with 5 additions and 2 deletions
|
|
@ -1276,8 +1276,11 @@ handle_settings(NMModemOfono *self, GVariant *v_dict)
|
|||
nm_l3_config_data_add_address_4(priv->l3cd_4, &address);
|
||||
|
||||
if (!g_variant_lookup(v_dict, "Gateway", "&s", &s) || !s) {
|
||||
_LOGW("Settings 'Gateway' missing");
|
||||
goto out;
|
||||
/* It is normal for point-to-point connections to not have a gateway IP
|
||||
* specified. Use 0.0.0.0 in that case.
|
||||
*/
|
||||
_LOGD("Settings 'Gateway' missing. Setting it to 0.0.0.0");
|
||||
s = "0.0.0.0";
|
||||
}
|
||||
if (!nm_inet_parse_bin(AF_INET, s, NULL, &gateway_network)) {
|
||||
_LOGW("invalid 'Gateway': %s", s);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue