diff options
author | Thomas Haller <thaller@redhat.com> | 2019-07-11 18:24:24 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-07-16 10:00:07 +0200 |
commit | 70b23c7979566f4be46d138dedfa59e215cec44b (patch) | |
tree | 90147e708d9002aeedbdce0a727900754a5501ee /libnm-core/nm-setting-ip-config.h | |
parent | 07fdc1828d825597cbd6f3b93e9e6a68dd4aef58 (diff) | |
download | NetworkManager-70b23c7979566f4be46d138dedfa59e215cec44b.tar.gz |
libnm: accept special table names for policy-routing
The tables "main", "local", and "default" have well known names.
Accept them as aliases when parsing the string representation of
the rule.
Note that iproute2 also considers /etc/iproute2/rt_tables for table
names. In particular, that allows a user to re-map the well-known names
like "main" to a different table. We never honor that file, and "main"
always means table 254.
Note that this only affects how we parse the string representation for
rules. As the representation is neither unique nor enforced to be normalized,
being more graceful here is no problem.
The point is of course that the user possibly has existing iproute2
scripts that use such keyword. This makes it simpler to copy & paste
the rule.
Diffstat (limited to 'libnm-core/nm-setting-ip-config.h')
0 files changed, 0 insertions, 0 deletions