Add NMIPRoutingRule API with a few basic rule properties. More properties will be added later as we want to support them.
Also, add to/from functions for string/GVariant representations. These will be needed to persist/load/exchange rules.
The to-string format follows the `ip rule add` syntax, with the aim to be partially compatible. Full compatibility is not possible though, for various reasons (see code comment).
7fb23b0a6 libnm: add NMIPRoutingRule API
libnm-core/nm-core-internal.h | 41 +
libnm-core/nm-setting-ip-config.c | 2120 +++++++++++++++++++++++++++++++++++++
libnm-core/nm-setting-ip-config.h | 147 +++
libnm-core/tests/test-setting.c | 200 ++++
libnm/libnm.ver | 46 +-
shared/nm-libnm-core-utils.h | 3 +
6 files changed, 2556 insertions(+), 1 deletion(-)