~connman-maintainers/connman/head

Viewing all changes in revision 8090.

  • Committer: Daniel Wagner
  • Author(s): Jussi Laakkonen
  • Date: 2021-04-05 13:56:51 UTC
  • Revision ID: git-v1:f37767230e4462374494c0206e8aa044c7ec1de2
service: Sort VPNs using the transport service if connected

Use the transport to verify the order of the connected VPN services. If
there is a transport service in use that ranks lower than an another
service it means that the order must be changed based on comparing the
transport and the service instead of comparing VPN and the service. This
is because the higher ranking service should then become the transport
of the VPN.

This ensures that when the list is sorted the transport check in
plugins/vpn.c will make VPN to switch to the new transport that is
enabled to be the default. Use of the service ident from hash table for
searching is used because the index cannot be retrieved from the list
while sorting the list.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: