diff options
author | Jussi Laakkonen <jussi.laakkonen@jolla.com> | 2020-12-08 12:17:57 +0200 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2020-12-11 14:29:10 +0100 |
commit | 36b1bb63318c72e0e0018f0281103beb1d8fba24 (patch) | |
tree | d11e9ec9a36efac92a21f5fdf1ff5268e86dab93 /vpn | |
parent | 0931adf7c5942f4aee494b68365a5244b7d23225 (diff) | |
download | connman-36b1bb63318c72e0e0018f0281103beb1d8fba24.tar.gz |
vpn: Support SplitRouting in D-Bus variables, improve route code
When adding connection check also SplitRouting value and set it
accordingly via provider. Process the SplitRouting variable also when
VPN property changes.
Use the new inet.c functions to get network, netmask and gateway for
VPNs that are split routed that have no other routes set. In that case
add the network route as split routed VPNs must have at least a single
route to VPN network. Check that for non-split routed VPNs the default
route is added and prevent adding default route for split routed VPNs.
Improve check_route() by also checking that the split routed VPN has
more than the default route set. A VPN cannot be set split routed if it
does not have at least one route set.
Always do a route check when changing split routing value via D-Bus. The
check is to make sure that when set as split routed the VPN has at least
one network route set. If not, the functionality described above will
add one.
Diffstat (limited to 'vpn')
0 files changed, 0 insertions, 0 deletions