Commit 0a72d0ab authored by Jussi Laakkonen's avatar Jussi Laakkonen

vpn-provider: Support split routing option for VPN providers

[vpn-provider] Support split routing option for VPN providers. JB#45606

Add the same option as service.c has on connmand side to vpnd in
vpn-provider.c. Replace all uses of default route except in supporting
it as a legacy option when loading from config value and receiving via
D-Bus API. SplitRouting is a boolean in every form, internal, settings
file and in D-Bus API.

The "DefaultRoute" is converted to "SplitRouting" if it exists in the
settings file. Also, if some component wishes to use still
"DefaultRoute" it is converted to "SplitRouting" when received via D-Bus
API. DefaultRoute "true" means the same as SplitRouting bool false.
Property change notifications on DefaultRoute are not sent anymore and
these are replaced with SplitRouting notifications.
parent ed947fd0
This diff is collapsed.
......@@ -88,6 +88,8 @@ const char *vpn_provider_get_string(struct vpn_provider *provider,
const char *key);
bool vpn_provider_get_string_immutable(struct vpn_provider *provider,
const char *key);
int vpn_provider_set_boolean(struct vpn_provider *provider, const char *key,
bool value);
bool vpn_provider_get_boolean(struct vpn_provider *provider, const char *key,
bool default_value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment