Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow DefaultRoute signal, use ordered list in checking default route. #19

Merged
merged 3 commits into from Jan 19, 2024

Conversation

LaakkonenJussi
Copy link
Contributor

@LaakkonenJussi LaakkonenJussi commented Jun 13, 2023

Monitor the DefaultRoute PropertyChanged signal and use ordered list for checking default route in order to improve default route management. This information contains also VPNs that are not supported by networkmanager and in such case the next connected from the ordered list is selected as "default" which is effectively the transport. This is to keep the upper layers informed that the network is still connected.

@LaakkonenJussi
Copy link
Contributor Author

Requires sailfishos/connman#46

@LaakkonenJussi LaakkonenJussi force-pushed the jb58240 branch 2 times, most recently from 51ab6a5 to fb04f8c Compare July 4, 2023 15:50
@LaakkonenJussi LaakkonenJussi changed the title WIP: [libconnman-qt] follow DefaultRoute signal emitted by ConnMan. JB#58240 Follow DefaultRoute signal and use ordered list in checking default route. JB#58240 Jul 4, 2023
…8240

ConnMan sends additional PropertyChanged signal that indicates to which
defaultroute has been changed to. Use this to see changes in the
service, which includes changes to VPN being the default route.

Improve default route management by using ordered list to check for
default route. If the topmost service is connected it is used as a
default route because ConnMan reports the list of services in ordered
manner and the top one is the default route. No need to parse routing
tables for the default route.

This change accounts for VPNs being as default and the next one in the
list is ordered to be the transport service used by the VPN. As VPN
services are not included in networkmanager use the next connected as
the default and keep network in connected state.
…#58240

Do the default route update always when the VPN used as default route
disconnects. This ensures that the update will reach the apps in such
case as well.
@LaakkonenJussi LaakkonenJussi changed the title Follow DefaultRoute signal and use ordered list in checking default route. JB#58240 Follow DefaultRoute signal, use ordered list in checking default route. Jan 19, 2024
ConnMan 1.32+git208 will have the DefaultRoute signal sent. The whole
operation after the previous two commits is changed  to rely on that
signal. Set requirement to that ConnMan version.
@LaakkonenJussi LaakkonenJussi merged commit 5784500 into sailfishos:master Jan 19, 2024
@LaakkonenJussi LaakkonenJussi deleted the jb58240 branch January 19, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants