NetworkManager/src/dhcp
Thomas Haller 5f99512366 core: prevent invalid routes in NMIP4Config/NMIP6Config
Kernel requires that the host part of a route (based on network/plen)
is zero. Routes with non-zero host part don't really exist.

In settings (NMIPRoute), we don't enforce that. Hence we must ensure
that we don't let such invalid routes into NMIP4Config/NMIP6Config.

Also at other places where we obtain routes from untrusted sources,
we must sanitize them first.

Also add an assertion to catch such bugs.
2017-07-25 06:44:13 +02:00
..
tests core: track addresses for NMIP4Config/NMIP6Config via NMDedupMultiIndex 2017-07-25 06:44:12 +02:00
nm-dhcp-client-logging.h dhcp: log the device context 2017-03-24 12:42:09 +01:00
nm-dhcp-client.c core: pass NMDedupMultiIndex instance to NMIP4Config and other 2017-07-05 14:22:10 +02:00
nm-dhcp-client.h core: pass NMDedupMultiIndex instance to NMIP4Config and other 2017-07-05 14:22:10 +02:00
nm-dhcp-dhclient-utils.c dhcp/dhclient: improve "interface" statement parsing 2017-07-10 11:35:12 +02:00
nm-dhcp-dhclient-utils.h core: pass NMDedupMultiIndex instance to NMIP4Config and other 2017-07-05 14:22:10 +02:00
nm-dhcp-dhclient.c core: pass NMDedupMultiIndex instance to NMIP4Config and other 2017-07-05 14:22:10 +02:00
nm-dhcp-dhcpcd.c dhcp: allow FQDNs in ipv4.dhcp-hostname 2017-05-04 16:25:06 +02:00
nm-dhcp-helper-api.h build: rename "src/dhcp-manager" to "src/dhcp" 2016-11-21 14:07:47 +01:00
nm-dhcp-helper.c build: rename "src/dhcp-manager" to "src/dhcp" 2016-11-21 14:07:47 +01:00
nm-dhcp-listener.c logging: log device and connection along with the message 2017-03-24 12:42:09 +01:00
nm-dhcp-listener.h build: rename "src/dhcp-manager" to "src/dhcp" 2016-11-21 14:07:47 +01:00
nm-dhcp-manager.c core: pass NMDedupMultiIndex instance to NMIP4Config and other 2017-07-05 14:22:10 +02:00
nm-dhcp-manager.h core: pass NMDedupMultiIndex instance to NMIP4Config and other 2017-07-05 14:22:10 +02:00
nm-dhcp-systemd.c core: prevent invalid routes in NMIP4Config/NMIP6Config 2017-07-25 06:44:13 +02:00
nm-dhcp-utils.c core: prevent invalid routes in NMIP4Config/NMIP6Config 2017-07-25 06:44:13 +02:00
nm-dhcp-utils.h core: pass NMDedupMultiIndex instance to NMIP4Config and other 2017-07-05 14:22:10 +02:00