mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 11:19:16 +02:00
Make which config is which clearer
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4256 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
581e32452d
commit
43e7228cad
1 changed files with 3 additions and 3 deletions
|
|
@ -270,7 +270,7 @@ add_ip4_addresses (NMIP4Config *config, const char *iface)
|
||||||
static void
|
static void
|
||||||
add_vpn_gateway_route (NMDevice *parent_device,
|
add_vpn_gateway_route (NMDevice *parent_device,
|
||||||
const char *iface,
|
const char *iface,
|
||||||
NMIP4Config *config)
|
NMIP4Config *vpn_config)
|
||||||
{
|
{
|
||||||
NMIP4Config *parent_config;
|
NMIP4Config *parent_config;
|
||||||
guint32 parent_gw = 0, parent_prefix = 0, vpn_gw = 0, i;
|
guint32 parent_gw = 0, parent_prefix = 0, vpn_gw = 0, i;
|
||||||
|
|
@ -294,8 +294,8 @@ add_vpn_gateway_route (NMDevice *parent_device,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < nm_ip4_config_get_num_addresses (config); i++) {
|
for (i = 0; i < nm_ip4_config_get_num_addresses (vpn_config); i++) {
|
||||||
tmp = nm_ip4_config_get_address (config, i);
|
tmp = nm_ip4_config_get_address (vpn_config, i);
|
||||||
if (nm_ip4_address_get_gateway (tmp)) {
|
if (nm_ip4_address_get_gateway (tmp)) {
|
||||||
vpn_gw = nm_ip4_address_get_gateway (tmp);
|
vpn_gw = nm_ip4_address_get_gateway (tmp);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue