mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-29 12:20:27 +01:00
wwan: ensure the route parameters are set on IPv6 only configuration
This commit is contained in:
parent
267948f2b7
commit
650b5fd99e
4 changed files with 11 additions and 9 deletions
|
|
@ -903,11 +903,8 @@ act_stage3_ip6_config_start (NMDevice *device,
|
|||
{
|
||||
NMDeviceBtPrivate *priv = NM_DEVICE_BT_GET_PRIVATE ((NMDeviceBt *) device);
|
||||
|
||||
if (priv->bt_type == NM_BT_CAPABILITY_DUN) {
|
||||
return nm_modem_stage3_ip6_config_start (priv->modem,
|
||||
nm_device_get_act_request (device),
|
||||
out_failure_reason);
|
||||
}
|
||||
if (priv->bt_type == NM_BT_CAPABILITY_DUN)
|
||||
return nm_modem_stage3_ip6_config_start (priv->modem, device, out_failure_reason);
|
||||
|
||||
return NM_DEVICE_CLASS (nm_device_bt_parent_class)->act_stage3_ip6_config_start (device, out_config, out_failure_reason);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -542,7 +542,7 @@ act_stage3_ip6_config_start (NMDevice *device,
|
|||
NMDeviceStateReason *out_failure_reason)
|
||||
{
|
||||
return nm_modem_stage3_ip6_config_start (NM_DEVICE_MODEM_GET_PRIVATE ((NMDeviceModem *) device)->modem,
|
||||
nm_device_get_act_request (device),
|
||||
device,
|
||||
out_failure_reason);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -804,20 +804,25 @@ stage3_ip6_config_request (NMModem *self, NMDeviceStateReason *out_failure_reaso
|
|||
|
||||
NMActStageReturn
|
||||
nm_modem_stage3_ip6_config_start (NMModem *self,
|
||||
NMActRequest *req,
|
||||
NMDevice *device,
|
||||
NMDeviceStateReason *out_failure_reason)
|
||||
{
|
||||
NMModemPrivate *priv;
|
||||
NMActRequest *req;
|
||||
NMActStageReturn ret;
|
||||
NMConnection *connection;
|
||||
const char *method;
|
||||
|
||||
g_return_val_if_fail (NM_IS_MODEM (self), NM_ACT_STAGE_RETURN_FAILURE);
|
||||
g_return_val_if_fail (NM_IS_ACT_REQUEST (req), NM_ACT_STAGE_RETURN_FAILURE);
|
||||
|
||||
req = nm_device_get_act_request (device);
|
||||
g_return_val_if_fail (req, NM_ACT_STAGE_RETURN_FAILURE);
|
||||
|
||||
connection = nm_act_request_get_applied_connection (req);
|
||||
g_return_val_if_fail (connection, NM_ACT_STAGE_RETURN_FAILURE);
|
||||
|
||||
nm_modem_set_route_parameters_from_device (self, device);
|
||||
|
||||
method = nm_utils_get_ip_config_method (connection, NM_TYPE_SETTING_IP6_CONFIG);
|
||||
|
||||
/* Only Ignore and Auto methods make sense for WWAN */
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ NMActStageReturn nm_modem_stage3_ip4_config_start (NMModem *modem,
|
|||
NMDeviceStateReason *out_failure_reason);
|
||||
|
||||
NMActStageReturn nm_modem_stage3_ip6_config_start (NMModem *modem,
|
||||
NMActRequest *req,
|
||||
NMDevice *device,
|
||||
NMDeviceStateReason *out_failure_reason);
|
||||
|
||||
void nm_modem_ip4_pre_commit (NMModem *modem, NMDevice *device, NMIP4Config *config);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue