diff options
author | Thomas Haller <thaller@redhat.com> | 2019-07-11 18:54:48 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-07-16 10:03:17 +0200 |
commit | 6ea56bc04c772b49b84b74396b5e71ba5ff1a089 (patch) | |
tree | 65bfed3eb77edfba103873e8bfd2e2548fc15e83 /libnm-core/nm-setting-ip-config.h | |
parent | 70b23c7979566f4be46d138dedfa59e215cec44b (diff) | |
download | NetworkManager-6ea56bc04c772b49b84b74396b5e71ba5ff1a089.tar.gz |
libnm,core: add support for "suppress_prefixlength" rule attribute
WireGuard's wq-quick configures such rules to avoid routing loops.
While we currently don't have an automatic solution for this, at least
we should support it via explicit user configuration.
One problem is that suppress_prefixlength is relatively new and kernel
might not support this attribute. That can lead to odd results, because
the NetworkManager is valid but it cannot be configured on the current
kernel. But this is a general problem, and we would require a general
solution. The solution cannot be to only support rule attributes that
are supported by the oldest possible kernel. It's not clear how much of
a problem there really is, or which general solution is required (if
any).
Diffstat (limited to 'libnm-core/nm-setting-ip-config.h')
-rw-r--r-- | libnm-core/nm-setting-ip-config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-ip-config.h b/libnm-core/nm-setting-ip-config.h index 912beda160..4a5223673b 100644 --- a/libnm-core/nm-setting-ip-config.h +++ b/libnm-core/nm-setting-ip-config.h @@ -262,6 +262,11 @@ guint32 nm_ip_routing_rule_get_table (const NMIPRoutingRule *self); NM_AVAILABLE_IN_1_18 void nm_ip_routing_rule_set_table (NMIPRoutingRule *self, guint32 table); +NM_AVAILABLE_IN_1_20 +gint32 nm_ip_routing_rule_get_suppress_prefixlength (const NMIPRoutingRule *self); +NM_AVAILABLE_IN_1_20 +void nm_ip_routing_rule_set_suppress_prefixlength (NMIPRoutingRule *self, gint32 suppress_prefixlength); + NM_AVAILABLE_IN_1_18 int nm_ip_routing_rule_cmp (const NMIPRoutingRule *rule, const NMIPRoutingRule *other); |