NetworkManager/src/platform/tests
Thomas Haller b8398b9e79 platform: add NMPRulesManager for syncing routing rules
Routing rules are unlike addresses or routes not tied to an interface.
NetworkManager thinks in terms of connection profiles. That works well
for addresses and routes, as one profile configures addresses and routes
for one device. For example, when activating a profile on a device, the
configuration does not interfere with the addresses/routes of other
devices. That is not the case for routing rules, which are global, netns-wide
entities.

When one connection profile specifies rules, then this per-device configuration
must be merged with the global configuration. And when a device disconnects later,
the rules must be removed.

Add a new NMPRulesManager API to track/untrack routing rules. Devices can
register/add there the routing rules they require. And the sync method will
apply the configuration. This is be implemented on top of NMPlatform's
caching API.
2019-03-13 09:47:37 +01:00
..
.gitignore platform: add nmp-object.h file 2015-06-17 11:23:51 +02:00
meson.build Revert "build/meson: name platform tests like autotools" 2019-02-23 07:40:03 +01:00
monitor.c platform/tests: drop bad comment 2017-12-11 10:30:25 +01:00
test-address.c docs: misc. typos 2018-09-15 09:08:03 +02:00
test-cleanup.c platform: merge NMPlatformError with nm-error 2018-12-27 21:33:59 +01:00
test-common.c all: replace strerror() calls with nm_strerror_native() 2019-02-12 08:50:28 +01:00
test-common.h platform/tests: add tests for handling policy routing rules 2019-03-13 09:03:59 +01:00
test-general.c platform: attach WifiData to NMPObject 2018-06-26 16:21:54 +02:00
test-link.c platform: add peer_flags argument to nm_platform_link_wireguard_change() 2019-02-14 08:00:29 +01:00
test-nmp-object.c platform: add NMPlatformObjWithIfindex helper structure for handling NMPObject types 2019-03-13 09:03:59 +01:00
test-route.c platform: add NMPRulesManager for syncing routing rules 2019-03-13 09:47:37 +01:00