NetworkManager/src/devices
Thomas Haller c8e6f3e5fb vpn: fix ifindex of parent IP config in apply_parent_device_config()
When creating the NMIP4Config/NMIP6Config instance, we must always use the right
ifindex. That is the ifindex, on which we want to apply the config. It also means,
that for device-based VPNs (those with priv->ip_ifindex set, like OpenVPN), the
parent's config must have the ip-ifindex of the parent device. Not of the
VPN's device.

One effect of this bug is that in add_ip4_vpn_gateway_route() we resolve
the route to the external gateway and only accept it if it's on the
parent device. But since the ifindex of the config was wrong, we would accept
route on the wrong interface.

https://bugzilla.gnome.org/show_bug.cgi?id=787370
2017-09-07 11:14:27 +02:00
..
adsl device: don't use platform singleton getter in device subclasses 2017-04-18 15:49:14 +02:00
bluetooth core: fix crash with bluetooth device factory wrongly claiming NAP connection 2017-08-06 07:50:48 +02:00
team team: wait that existing instance is killed before starting teamd again 2017-09-01 09:40:21 +02:00
tests platform/tests: use nm_platform_link_veth_add() to create veth pair in test 2017-05-27 23:16:56 +02:00
wifi devices/wifi: move scan option processing to D-Bus request scan handler 2017-08-11 12:35:01 -05:00
wwan platform: add non-exclusive routes and drop route-manager 2017-08-24 10:48:03 +02:00
nm-arping-manager.c devices/arping-manager: log the device context 2017-03-24 12:42:09 +01:00
nm-arping-manager.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-bond.c platform: pass string buffer to nm_platform_error_to_string() and print numeric errno 2017-08-24 10:55:45 +02:00
nm-device-bond.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-bridge.c platform: pass string buffer to nm_platform_error_to_string() and print numeric errno 2017-08-24 10:55:45 +02:00
nm-device-bridge.h bridge: move the Bluetooth NAP logic to bridge device 2017-06-01 11:57:42 +02:00
nm-device-dummy.c platform: pass string buffer to nm_platform_error_to_string() and print numeric errno 2017-08-24 10:55:45 +02:00
nm-device-dummy.h core: add support for dummy devices 2017-02-22 21:05:04 +01:00
nm-device-ethernet-utils.c device: use NMSettings directly instead of NMConnectionProvider in subclasses 2016-05-24 12:35:58 +02:00
nm-device-ethernet-utils.h device: use NMSettings directly instead of NMConnectionProvider in subclasses 2016-05-24 12:35:58 +02:00
nm-device-ethernet.c device: use ppp device for new style pppoe setting 2017-08-05 08:03:16 +02:00
nm-device-ethernet.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-factory.c core: device-factory: implement match_connection() 2017-08-05 08:03:16 +02:00
nm-device-factory.h core: device-factory: implement match_connection() 2017-08-05 08:03:16 +02:00
nm-device-generic.c device: don't use platform singleton getter in device subclasses 2017-04-18 15:49:14 +02:00
nm-device-generic.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-infiniband.c platform: pass string buffer to nm_platform_error_to_string() and print numeric errno 2017-08-24 10:55:45 +02:00
nm-device-infiniband.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-ip-tunnel.c platform: pass string buffer to nm_platform_error_to_string() and print numeric errno 2017-08-24 10:55:45 +02:00
nm-device-ip-tunnel.h device: move tracking of parent device from NMDeviceIPTunnel to NMDevice 2017-01-04 14:18:01 +01:00
nm-device-logging.h manager: add logging macro _NMLOG2() for logging device messages 2017-06-08 21:50:23 +02:00
nm-device-macsec.c platform: pass string buffer to nm_platform_error_to_string() and print numeric errno 2017-08-24 10:55:45 +02:00
nm-device-macsec.h core,libnm: introduce NMDeviceMacsec 2017-01-16 17:37:14 +01:00
nm-device-macvlan.c platform: pass string buffer to nm_platform_error_to_string() and print numeric errno 2017-08-24 10:55:45 +02:00
nm-device-macvlan.h device: move tracking of parent device from NMDeviceMacvlan to NMDevice 2017-01-04 14:18:01 +01:00
nm-device-ppp.c core: implement activation of PPP devices 2017-08-05 08:03:16 +02:00
nm-device-ppp.h device: add NMDevicePPP 2017-08-05 08:03:15 +02:00
nm-device-private.h core: implement activation of PPP devices 2017-08-05 08:03:16 +02:00
nm-device-tun.c platform: pass string buffer to nm_platform_error_to_string() and print numeric errno 2017-08-24 10:55:45 +02:00
nm-device-tun.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-device-veth.c device: remove unused private data for NMDeviceVeth 2017-05-27 23:16:56 +02:00
nm-device-veth.h all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nm-device-vlan.c platform: pass string buffer to nm_platform_error_to_string() and print numeric errno 2017-08-24 10:55:45 +02:00
nm-device-vlan.h device: move tracking of parent device from NMDeviceVlan to NMDevice 2017-01-04 14:18:01 +01:00
nm-device-vxlan.c platform: pass string buffer to nm_platform_error_to_string() and print numeric errno 2017-08-24 10:55:45 +02:00
nm-device-vxlan.h device: move tracking of parent device from NMDeviceVxlan to NMDevice 2017-01-04 14:18:01 +01:00
nm-device.c vpn: fix ifindex of parent IP config in apply_parent_device_config() 2017-09-07 11:14:27 +02:00
nm-device.h core: pass NMDedupMultiIndex instance to NMIP4Config and other 2017-07-05 14:22:10 +02:00
nm-lldp-listener.c core: use NM_HASH_COMBINE() function 2017-07-05 14:22:10 +02:00
nm-lldp-listener.h core: refactor private data for NMExportedObject and others 2016-10-03 12:04:14 +02:00